How to stop embedded videos on my website from autoplaying

Michael picture Michael · May 7, 2015 · Viewed 16.3k times · Source

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?

Answer

Lal picture Lal · May 7, 2015

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"