YouTube Hack: Automatically Start and Loop Videos

Posted February 15, 2007 by MickeyMouse in Internet

Building on the previous URL youtube hack presented here, I have figured out how to automatically start and loop youtube videos.

Davak recently posted on how to hack the URL of a youtube video to increase or decrease the size. This continues the practice of manipulating the URL to change the default embedded youtube player’s characteristics.

I’ll use the very cool Web 2.0 … The Machine is Us/ing Us clip as an example. Here is the default code.

To make the video play automatically (like it does on the youtube page) add &autoplay=1 to both of the youtube url codes above.

So you would change to

This resulting code will therefore automatically play the youtube clip when the page is visited (unless youtube is choking for some reason today):

If you want the youtube clip to automatically restart and loop when done then add this additional modifier to the url: &loop=1

Therefore, you would change all the youtube urls to this:

The results code should autostart and autoloop…

The Conversation

Follow the reactions below and share your own thoughts.