HTML5 Video Autoplay in mobile browsers

Asked

Viewed 664 times

0

The autoplay attribute on the tag VIDEO does not seem to work in mobile browsers, I searched and it seems that this concerns a policy of permissions between the browser and the end user, I tried to force autoplay by firing a click event to a play button, works in the desktop browser but not in mobile.

Is there any way around this? and set up autoplay to touch the mobiles.

2 answers

1


Unable to give autoplay to a video in mobile browsers. This is a limitation imposed by them.

This limitation is intended to prevent the unsolicited download through the user data package, thus saving the franchise of the user.

As far as I know there is no way to circumvent this limitation, only a user-initiated event such as a touch on the screen can start the video, and this cannot be a javascript simulator.

0

If the video is on a banner on the page, you can try to put it in the second transition, that is to force the user to click on the next banner to be able to view the video, so it will be a request from the user himself.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.