Autoplay with <iframe> You Tube video - ?autoplay=1 not working

user2757556 picture user2757556 · Sep 7, 2013 · Viewed 24.5k times · Source

How can I autoplay a video using the new embed code style for Youtube?

My code followed these instructions and does not work. I also looked on the YouTube help and they say the same thing -- does not work for me.

<html><body>
<iframe width="640" height="385" src="//www.youtube.com/embed/0319ZgKMLzw?autoplay" frameborder="0" allowfullscreen></iframe></body>
</html>

See it not autoplaying here, the code is there in firebug.

Answer

Gencay Deniz picture Gencay Deniz · Jan 11, 2014

Edit your embed code to "?autoplay=1" and add "http://". Here is the working code for you...

<iframe width="640" height="385" src="http://www.youtube.com/embed/0319ZgKMLzw?autoplay=1"> </iframe>