Skip to content Skip to sidebar Skip to footer

Autoplay Html5 Video With External Link On Mobiles

I have created a web page that auto plays a full screen background video. On top of the video is a div that contains text & a link to an external site - this works fine in all

Solution 1:

Autoplay for HTML5 video is not allowed on mobile devices such as iOS or Android. You can read this for the whys and hows on iOS.

On iPhone the video plays in the default (fullscreen) Quicktime player. So there is no real background notion (this could be accomplished in a native app where inline playback of video is allowed but not in the Safari/web browser). You would need to stick to an image I guess.

On the iPad or on Android in order to accomplish what you want you will need to bind your video tag to a touch event/button (like when a user 'touch' to enter your site), and on this event initiate the play sequence for the video (in your case the video being set to occupy the full width and height of the viewport).

Thanks

Post a Comment for "Autoplay Html5 Video With External Link On Mobiles"