Categories: Marketing

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:

&amp;autoplay=1

to the end of the You Tube URL – like this:

<iframe src=”http://www.youtube.com/embed/HSlD79sqHp4?rel=0&amp;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&amp;hl=en_US&amp;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&amp;hl=en_US&amp;rel=0″ type=”application/x-shockwave-flash” width=”560″ height=”315″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>

Youtube Autoplay Embed Code

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&amp;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&amp;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

Charles

Share
Published by
Charles

Recent Posts

Free Script: 3D Pre-Compose + Tutorial!

[youtube http://www.youtube.com/watch?v=2TvlE5SFaxM] I finally got tired of doing this manually, so we created a free…

3 months ago

3D Pre-Compose Script

    Pre-Compose 3D Aware effects with ease and link expressions    Great for displacement maps or isolating 3D…

3 months ago

New Tutorial: Sci-Fi Weapon FX!

[youtube http://www.youtube.com/watch?v=UWppqLrS6cU?feature=oembed&w=500&h=281] In this exciting tutorial I’ll be showing you how to create various sci-fi…

3 months ago

Sci-Fi Weapon FX

    Create a variety of futuristic weapon FX    Add Distortion and shockwaves Source: Video Copilot 2

3 months ago

New Tutorial: Shockwaves in After Effects!

[youtube http://www.youtube.com/watch?v=JYbgjCR8PMI] You don’t want to miss this in depth tutorial! Massive tips, no extra…

3 months ago

Shockwaves!

    Create a powerful shockwave effect without 3rd party tools    Fix seam issues and add particle pieces…

3 months ago