-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
A lot of providers don't work in an iframe #586
Comments
|
I know this issue was closed, but I believe it's valid. I think that the play action fails at times even when the user does interact with the document first ie. a play button that triggers a load and then play. I think the issue stems from the origin receiving permission via the click, but that permission is never delegated to the iframe. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe I believe this can be fixed for the Soundcloud Player specifically by simply adding |
Hello,
I have an issue with the react-player in iframes, the "Play" action don't work (for example on Vimeo, I always have this issue:
Uncaught (in promise) NotAllowedError: play() failed because the user didn't interact with the document first.
You can reproduce the issue with the following code:
<iframe width="100%" height="100%" src="https://cookpete.com/react-player"></iframe>
Choose a Vimeo/Youtube/Soundcloud source and click on the Play button
Any idea?
The text was updated successfully, but these errors were encountered: