I 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:
Open a notepad file and save it as an html file. In Notepad you’ll want this code:
<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>
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.
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