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

Not working with latest versions? #87

Open
izupet opened this issue Mar 2, 2021 · 4 comments
Open

Not working with latest versions? #87

izupet opened this issue Mar 2, 2021 · 4 comments

Comments

@izupet
Copy link

izupet commented Mar 2, 2021

I try to enable chromecast plugin but seems like it does not work or I am missing something. Here is JSFiddle

It does not work if I load plugin through player options neither if I load it dynamically. But player's activePlugins_ property shows like plugin is successfully registered.

@ziddey
Copy link

ziddey commented Mar 19, 2021

Need to follow the instructions more closely.

  1. You're missing the cast framework:
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
  1. You didn't define the techOrder:
techOrder: ['chromecast', 'html5']

Also it won't work in jsfiddle's sandbox:

Uncaught DOMException: Failed to construct 'PresentationRequest': The document is sandboxed and lacks the 'allow-presentation' flag.

chrome_x1Uw5j2zQp

@izupet
Copy link
Author

izupet commented May 5, 2021

I added missing script and defined the techOrder as suggested but I still can't make it work - JSFiddle - I tried this JSFiddle example on real server without success.

@ziddey
Copy link

ziddey commented May 6, 2021

copied your fiddle and it works fine on my end. only issue I'm seeing is that after casting, I need to hit play again to start playback on the chromecast.

@AltFreq07
Copy link

I added missing script and defined the techOrder as suggested but I still can't make it work - JSFiddle - I tried this JSFiddle example on real server without success.

Manage to get this working? Currently having a similar issue

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

3 participants