How to Disable Auto-Play for Local Video in Iframe

How to autoplay local video with iframe?

First, instead of using an iframe, use a <video> tag. (Because its self-hosted on your website, no need to use an iframe) To make it autoplay, just add the "autoplay" attribute.

For Example:

<video width="320" height="240" controls autoplay>
<source src="movie.mp4" type="video/mp4">
</video>

iframe video autoplay=false

You can use the video tag:

<video width="500" height="322" controls>
<source src="links/Clean-Energy-Overview-Wind Facts.mp4" type="video/mp4">
</video>

iOS 14.4.2 seems to disable video autoplay

If anyone's wondering, the videos work just fine. Apparently, enabling battery saver on iphone disables autoplay videos.



Related Topics



Leave a reply



Submit