user3293752
user3293752

Reputation: 11

VideoJS - Autoplay in Mobile

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?

Upvotes: 0

Views: 4400

Answers (3)

ren.rocks
ren.rocks

Reputation: 792

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

Upvotes: 1

Dayne Mentier
Dayne Mentier

Reputation: 307

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.

Upvotes: 1

Matt McClure
Matt McClure

Reputation: 2146

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.

Upvotes: 0

Related Questions