0

The autoplay do not working in mobiles (Android, iOS). The autoplay work in mobiles? Exist another plugin in html5 to show videos and start automatically in mobiles?

user3293752
  • 11
  • 1
  • 2

3 Answers3

1

There is a workaround for this. What I've done is dynamically append the video element, and have the autoplay setup option set to true.

The trick is to place an element in front of the video player that initiates the action to append the video element. You can't use video.js's poster since that isn't available until videojs is instantiated. I haven't tried to trigger that event manually in javascript, but that might be worth a try.

Dayne Mentier
  • 307
  • 2
  • 8
1

Relevant Question

As of January 24th, 2017

HTML5 video tags can autoplay on android if the video is muted. You would need to include the muted and autoplay attributes in the tag to make it work as intended.

Here is a link to the article: Autoplay on Chrome for Android as of version 53

Community
  • 1
  • 1
ren.rocks
  • 772
  • 1
  • 7
  • 22
0

No, autoplay does not work in mobile devices. A user action (click, etc) is required in order to begin playback in order to avoid excessive bandwidth use.

Matt McClure
  • 2,046
  • 2
  • 18
  • 19