Blog

If you like to have autoplay in your youtube embed videos, you need to add some extra parameters into the URL and into the <iframe>.

For example, this is the old <iframe> that we like to modify:

<iframe width="560" height="315" src="https://www.youtube.com/embed/O8G9ytZg-bM" frameborder="0">

and the new parameters (mark with bold)

<iframe width="560" height="315" src="https://www.youtube.com/embed/O8G9ytZg-bM?autoplay=1&mute=1&enablejsapi=1" frameborder="0" allow="autoplay">

Cookies