-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Autoplay in Chrome stopped working. #1240
Comments
Me and our clients got a maybe related problem today. Chrome 35 refuses to play the video at all, but only if the player is embedded in an iframe. The player controls work fine, but refuses to start the playback. This is the exact code i place my breakpoint in (probably old video.js code, it havent been updated for a while):
Edit: Confirm that it works as soon as i turn off autoplay. And i can confirm that it also works after updating videojs to a more recent version (April 8 stable release, if you want to know). Still, curious what Chrome changed from version 34 to 35. |
So it looks it's working, but only if you set AFAIK, preload should be ignored if autoplay is present, but I'm not sure if that's really in the spec of just something most browsers have done. Whatever the case is, it's clear Chrome broke this behavior in a recent version. I'll leave this issue open for now for tracking. |
I can confirm I experienced the very same thing, @mmcc's workaround works perfectly fine for now. |
Updated to more recent (but not latest) videojs, and switched configuration to work around autoload on chrome breaking. videojs/video.js#1240
It looks like this is fixed in Chrome Canary (37.0.2048.2 canary), so hopefully that makes it back into the main channel. I'm going to close this one in the meantime. |
I have Chrome 49 OSX, and autoplay don't work in Chrome for me, but it works in Firefox. |
Same problem, autoplay doesn't work on Chrome 49 Windows 8.1. |
I'm having the same problem with the latest versions of vjs and chrome. Having to resort to this at the moment:
|
Same problem for me |
Same problem here but it was with mobile Chrome: Removing |
Same here... |
+1, even if I add player.play() right after creating videojs object, it doesn't work in latest chrome, only firefox. |
Only this works for me: |
you should try using video on local server insted of external link. Auto play workd for me from local server. |
On Android, you can autoplay if you put
|
I have an app that's over a year old and I can't get Chrome to autoplay anymore using video.js
Fiddle:
http://jsfiddle.net/cdeutsch/cjyB3/
I'm guessing something in Chrome changed.
I just confirmed that fiddle works in Chrome 34.0.1847.116 on windows (which amazingly I had open and not updated)
Does not work in 35.0.1916.114 on OSX
The text was updated successfully, but these errors were encountered: