How to Prevent Autoplay in Iframe HTML Content

How to stop Iframe autoplay

An iframe cannot play anything by itself, so you also can't tell it not to autoplay. An iframe just loads a page (the src you provide), and it is the contents inside that page that can play, like in this case the video.

How can I disable autoplay on this video in iframe?

Have you tried video tag like this? I read that you tried video tag, but I don't know how you use it.

<video src="https://vid.hellonetcdn.com/vid/ga/catoosacountychamberofcommerce/biz/gacato_20_auth_iwd_lrg_univ.mp4?e38745c27f40642d5060466095b4f9dc163cc39e4665f99234a90aab77a52f0a02345d798aa33466b24f29cfdee8f07048d9c752f9"></video>

I tried this code on jsbin, and is working if you right-click on video and click play: https://jsbin.com/vovahogeza/edit?html,output

UPDATE

With thumbnail/poster:

<video poster="https://ichef.bbci.co.uk/news/660/cpsprodpb/150EA/production/_107005268_gettyimages-611696954.jpg" src="https://vid.hellonetcdn.com/vid/ga/catoosacountychamberofcommerce/biz/gacato_20_auth_iwd_lrg_univ.mp4?e38745c27f40642d5060466095b4f9dc163cc39e4665f99234a90aab77a52f0a02345d798aa33466b24f29cfdee8f07048d9c752f9"></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>


Related Topics



Leave a reply



Submit