Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No re-connection on page refresh #32

Open
lucafaggianelli opened this issue Apr 18, 2020 · 1 comment
Open

No re-connection on page refresh #32

lucafaggianelli opened this issue Apr 18, 2020 · 1 comment

Comments

@lucafaggianelli
Copy link

I'm able to cast a video to my chromecast, but if I refresh the page, the connection to chromecast is lost, that is, the video keeps playing on the TV but CastVideos-chrome page shows the local player and to connect again to chromecast I have to click on the cast button, disconnect and then re-connect

@jtromo
Copy link
Contributor

jtromo commented Sep 27, 2021

What do you currently have set for your AutoJoinPolicy?

https://developers.google.com/cast/docs/reference/web_sender/chrome.cast#.AutoJoinPolicy

Try setting the policy to ORIGIN_SCOPED so that it rejoins properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants