video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Videojs autoplay not working on android chrome

Open ngoyal16 opened this issue 8 years ago • 8 comments

We added videojs as a media player with ima ad manager. the autoplay function is working with all other browser but not with android chrome.

Error output

DOMException: play() can only be initiated by a user gesture.

ngoyal16 avatar Feb 03 '18 13:02 ngoyal16

This is a browser limitation. Mobile browsers (and soon some desktop browsers as well, Safari already and desktop Chrome with version 66) disallow playing back video with audible audio. If you mute the video, you should be able to autoplay, otherwise, you cannot autoplay on mobile devices.

gkatsev avatar Feb 03 '18 16:02 gkatsev

Check this out https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

dandelionred avatar Feb 03 '18 16:02 dandelionred

@gkatsev the video is in the mute mode but still it is not working with the mobile browser

ngoyal16 avatar Feb 04 '18 00:02 ngoyal16

Is it an android phone? I guess autoplay is even more restricted on phones up to no autoplay at all. Tablets are less restricted.

dandelionred avatar Feb 04 '18 10:02 dandelionred

@ngoyal16 Found any solutions?

horcrux2301 avatar Mar 01 '18 17:03 horcrux2301

@ngoyal16 i am facing the same problem tested on latest mobile browsers UC, Mozila, Opera but only on chrome autoplay (mute/unmute) is not working if you found something please let me know, thanks

mohit546 avatar Mar 06 '18 08:03 mohit546

for me the problem was that if a person limited access to their internet data "data saver mode" then it not allow to play any video by autoplay.

ngoyal16 avatar Mar 06 '18 08:03 ngoyal16

For me autoplay is working on scroll but, while clicking on the ads the player stops and ads gets resumed and paused also when we click on mute and unmute the issue occurs

sudhakarsukumar avatar Jun 11 '18 12:06 sudhakarsukumar