Closed dematerializer closed 3 years ago
Working fine for me on Chrome 85.0.4183.102.
Are you using any extensions or something that might be interfering?
This is so strange:
I wonder if this might have something to do with the YouTube API, GDPR compliancy and the fact that i live in Germany.
I had the same problem today (no play, pause, seekTo, getCurrentTime...) on chrome 85.0.4183.102 and os x 10.15.6. Chrome "Clear browsing data" fixed the issue in my case.
Hey, we are getting this too for specific computers, but not for other computers haha. Super weird. But boiled it down to the video loads but onReady is never called! -> We live in the U.S
Let me know if this helps but same computers different browsers work We've seen controlling events broken for firefox, and chrome
For the cases that are broken we have only seen it happen for youtube and we verify it here to make sure it's not an environment specific problem https://cookpete.com/react-player/
We have also seen incognito sometimes solve the problem on firefox!
Can someone who experiences this problem confirm if the same thing happens when using the iFrame Player API directly?
https://developers.google.com/youtube/iframe_api_reference#Getting_Started
In other words – is this something is specifically wrong with ReactPlayer's implementation, or is this actually a problem with the YouTube Player API on certain browsers? If it's the latter then I don't see what can be done in this library.
This issue is closed, but if someone has this problem (like I did), it was for me https://poperblocker.com/ that caused it.
Btw if someone by chance bumps into this... Seems like something like OneTrust Cookies Consent Notice script is blocking other scripts to execute so if you have something like that in your page then make sure to "consent" and see if you can play the video. Or just remove the cookie consent script and check if that helps. Would have saved an hour of time if I knew this beforehand...
Current Behavior
Controlling YouTube video playback is broken.
Expected Behavior
YouTube video playback should be controllable.
Steps to Reproduce
Environment
Other Information