AlanWho

Mar 07, 2009

How To Make YouTube Videos Autostart

By default when you embed a youtube video on a web page using the YouTube embed code the user has to press the play button. For all situations where you want the video to autoplay you need to make two changes to the object embed code that you get from YouTube. Look for the location of your video in the object embed code, it should be like:

http://www.youtube.com/v/DMxNkrwajN8

Then append the following at the end:

&autoplay=1

So working with the above example the link to our video in our object embed code would become:

http://www.youtube.com/v/DMxNkrwajN8&autoplay=1

Easy peazy.

Share post on facebook

Comments:

Add Your Own Comment Fields marked * are required.

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS