How To Loop a YouTube Video
Wednesday, July 14th, 2010I like to listen to music while I work… sometimes I get stuck on a song that I like to hear… here’s what I do so that I can hear the same song over and over. Note that I normally hate repetition but I put one of these songs on while I work and it’s nice background noise… with no distractions, and no need to hit replay:
Step 1
Open a notepad file and save it as an html file. In Notepad you’ll want this code:
<html>
<p><object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/0Gjx-ZQuQ_Y=en&fs=1&”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/0Gjx-ZQuQ_Y=en&fs=1&loop=1″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object></p>
<html>
Step 2
Now, go to Windows Explorer and double click on the file – it should open in your browser, with a YouTube video embedded.
When you click on play, it will play to the end, then loop again and keep looping all day long.
I have about 7 videos on that page so I can put on different songs when one gets to be too much.
Step 3
To add a new video, just copy and paste the code above (from <p> to </p>) and change what is in bold to be the video code from the YouTube page (in yellow below).
You are telling the chunk of code above which video to show.
That’s it… I’m guessing I’ll update this post as people tell me what’s wrong with it, but it should work.
Not ALL videos work like this… some have protections placed on the YouTube side, and you’ll get a message saying you can’t loop it or show it… but many songs will loop. Just play around with it.
One of these days I want to figure out how to loop a playlist :p









Today I had a very cool radio interview. Well, it was a recording and essentially a podcast… it was being recorded, and it will be linked to from a newspaper in central California.