Posts Tagged ‘Hl En’

How To Autoplay Your Youtube Video

September 30th, 2009

This tutorial is going to show you how to place a YouTube video on your own website or blog, and also how to make it automatically play when your site loads. The reason you might want to auto play a video on your website are for various reasons. One being, the number of your YouTube plays on YouTube will increase, giving you a better position. Rather than waiting for someone to play your video online, you have a view every time someone visits your website.

So for the first step is finding the YouTube video that you are looking for.

Once, you know this you need to copy and paste the Embeded code given to you shown in the screenshot below.

YouTube Embeded Code

YouTube Embeded Code

When you first copy and paste your code to your website, this is the code that you are given.

 <object width="425" height="344">

<param name="movie" value="http://www.youtube.com/v/-5ftmBBhssY&hl=en&fs=1&"></param>

<param name="allowFullScreen" value="true"></param>

<param name="allowscriptaccess" value="always"></param>

<embed src="http://www.youtube.com/v/-5ftmBBhssY&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>

</object> 

Notice in the code above I have highlighted the everything in the embed tags. This is the code that you are going to keep in order to auto play your video. You can go ahead and delete the rest.

The next step after you have cleaned up the code, is to add &autoplay=1 to the end of the embed source url (embed src) as shown below.

<embed src="http://www.youtube.com/v/-5ftmBBhssY&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>

</object> 

Not as bad as you thought I’m sure.  Let me know if you have any questions or comments!

  • Share/Bookmark