Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop embedded videos on my website from autoplaying

embed src="clip2.mp4" width="600" height="400" scale="aspect" controller="true"

This is the code I have used to display the video onto my website, but does anybody know how to stop the video from automatically playing once the website has loaded?

like image 722
Michael Avatar asked Mar 17 '23 03:03

Michael


1 Answers

you need to add these two attributes to the <embed>

autoplay="false"
autostart="false"

Some browsers wont recognize true or false. In such situations try,

autoplay="0"
autostart="0"
like image 96
Lal Avatar answered Apr 30 '23 00:04

Lal