Disable autoplay
Solved
siworg
Posted messages
8
Status
Member
-
siworg Posted messages 8 Status Member -
siworg Posted messages 8 Status Member -
Hello,
I have a problem that really bothers me and to which I still haven't found an answer...
So here it is, I've been programming my website for a few days and I've introduced a video using the <iframe> tags. Here’s my code:
<iframe width="560" height="350" src="video.mp4" frameborder="0" allowfullscreen name="Presentation">
</iframe>
But the problem is that my video plays automatically!
I don't want my future visitors to see this video without asking for it...
And imagine, when I add 3 or 4, if they all start playing!
I hope you can respond to me
Thank you!
I have a problem that really bothers me and to which I still haven't found an answer...
So here it is, I've been programming my website for a few days and I've introduced a video using the <iframe> tags. Here’s my code:
<iframe width="560" height="350" src="video.mp4" frameborder="0" allowfullscreen name="Presentation">
</iframe>
But the problem is that my video plays automatically!
I don't want my future visitors to see this video without asking for it...
And imagine, when I add 3 or 4, if they all start playing!
I hope you can respond to me
Thank you!
2 answers
Normally, a video shouldn't be embedded using an iframe, especially if it's a video hosted on your server.
Therefore, no matter how many autostart or autoplay parameters you add, set to 0 or false, it won't work anyway.
Learn more about how to embed a video on your site
html5
https://www.alsacreations.com/article/lire/1125-introduction-balise-video-html5-mp4-h264-webm-ogg-theora.html
--
A small thank you is better than great ignorance!
So if your issue is resolved, a response with thanks would be appreciated.
Therefore, no matter how many autostart or autoplay parameters you add, set to 0 or false, it won't work anyway.
Learn more about how to embed a video on your site
html5
https://www.alsacreations.com/article/lire/1125-introduction-balise-video-html5-mp4-h264-webm-ogg-theora.html
--
A small thank you is better than great ignorance!
So if your issue is resolved, a response with thanks would be appreciated.