YouTube Hack: Automatically Start and Loop Videos
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 http://www.youtube.com/v/6gmP4nk0EOE to http://www.youtube.com/v/6gmP4nk0EOE&autoplay=1
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…
Follow the reactions below and share your own thoughts.