Friday, 5 December 2014

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.



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/watch?v=DJ3_BLzg-sM tohttp://www.youtube.com/watch?v=DJ3_BLzg-sM&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:
http://www.youtube.com/watch?v=DJ3_BLzg-sM&autoplay=1&loop=1
The results code should autostart and autoloop…

No comments:

Post a Comment

17 Unusual Weight Loss Tips