Make YouTube Video Auto Play

Sometimes the first thing that we might want to share with a visitor to our web page is a playing video. Using YouTube, it is rather easy to add auto play functionality to any YouTube video. It is a simple code that needs to be inserted in the code from the share option on YouTube.

To get the code for the video, go to YouTube and find the video you would like on your site. Then get the video code by clicking on the share button at the bottom:

Code for Video YouTube Auto Play

Now that we have the code, all we need to do is add the auto play functionality. We do this by adding the following code highlighted below. The “Before” example is what the code looks like when we first get it from YouTube, the “After” example features the additional code to be added in bold. Make sure to add it to the video in the exact same position, with the exact same characters.

YouTube Video without Auto Play

<iframe width=”640″ height=”360″ src=”[YouTube Video URL]” frameborder=”0″ allowfullscreen></iframe>

YouTube Video with Auto Play

<iframe src=”[YouTube Video URL]?rel=0&amp;autoplay=1″ width=”640″ height=”360″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

That’s it! Now your ready to enjoy auto play YouTube videos on your website. Just make sure to embed the code in the HTML editor of your site, and you should be good to go.

Jophiel Silvestrone

Written by: Jophiel Silvestrone

Jophiel Silvestrone has written 163 posts in the Tech Blog.

Jophiel grew up on a ranch in Paradise Valley, Montana near Chico Hot Springs. Working on the ranch instilled work ethic and self motivation. Filled with this drive, Jophiel started mowing the local school's yards twice a month throughout the summers, at the age of 12. He moved to Billings in 2004, where he has been deeply involved in the local business community ever since. A serial entrepreneur, Jophiel has ran multiple businesses in our local community. He now runs a web development company SkyPoint Studios. One of his favorite jobs though, is fathering his 11-year old son Jaoquin. "JJ" also loves technology.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.