How to stop iframe autoplay?

by elise_daugherty , in category: HTML & CSS , 6 months ago

How to stop iframe autoplay?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by hal.littel , 6 months ago

@elise_daugherty 

To stop iframe autoplay, you can add the autoplay="false" attribute to the iframe tag. Here's an example of how you can do this:

1
<iframe src="https://www.example.com/video.mp4" width="560" height="315" frameborder="0" allowfullscreen allow="autoplay; encrypted-media" autoplay="false"></iframe>


By adding autoplay="false" to the iframe tag, the video will no longer autoplay when the page loads.

Related Threads:

How to autoplay iframe with video in chrome?
How to disable autoplay video in iframe?
How to make the video autoplay inside iframe?
How to stop php process in iframe?
How to make play/stop buttons for iframe audio?
How to autoplay a video in ember.js in chrome?