You-Tube Autoplay Embed Code – How to Make Your Video Automatic (iframe)

(New iframe Code + Old Flash Code) Do you want people to automatically start watching your video? In this article I will show you how to make a You Tube Video Autoplay.
Note: Google may (or may not) penalize auto-play videos – so I would recommend watching your visitor stats to see if they are affected. If it lessons your bounce rate than it would obviously be a good thing…
Here’s an example (instructions below the video):
It’s fairly easy to do. Google updated their Embed-code to what is called “HTML 5” – this new code makes it a little more difficult to make Your Tube Videos to Autoplay. But I’ll show you how here:
You-Tube Autoplay Embed Code – How to Make Your Tube Video Automatically Play:
First – you have to copy the code to your website, looks like this:
<iframe src=”http://www.youtube.com/embed/HSlD79sqHp4?rel=0″ frameborder=”0″ width=”560″ height=”315″></iframe>
The next part is simple:
Just add:
&autoplay=1
to the end of the You Tube URL – like this:
<iframe src=”http://www.youtube.com/embed/HSlD79sqHp4?rel=0&autoplay=1” frameborder=”0″ width=”560″ height=”315″></iframe>
Here is the old version:
This is the old code: press embed then check “use old code”. for example : <object width=”560″ height=”315″><param name=”movie” value=”http://www.youtube.com/v/HSlD79sqHp4?version=3&hl=en_US&rel=0″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/HSlD79sqHp4?version=3&hl=en_US&rel=0″ type=”application/x-shockwave-flash” width=”560″ height=”315″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>
Where it says “&hl=en_US” in both urls in the code replace that with “&autoplay=1” dont forget to erase the amp…etc. then replace it with “&autoplay=1″ in both URLs – like this:
<object width=”560″ height=”315″><param name=”movie” value=”http://www.youtube.com/v/HSlD79sqHp4?version=3&autoplay=1&rel=0″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/HSlD79sqHp4?version=3&autoplay=1&rel=0″ type=”application/x-shockwave-flash” width=”560″ height=”315″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>
Hope that makes it more clear for you. Feel free to share this if you like it!
Best,
Charles