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
Neat little trick. Don’t have time to try it right now but I think I have a use for this. Thanks for sharing.
When i open notepad, it has a new clean file open already. should i then paste your code on the clean file? that’s what i did, then clicked file then clicked save as, but it only gave me the option to save as a text file. how do i save it as an html file? how do i double click on the html file when i have windows internet explorer open?
@David – yes, past the code into the clean file.
Then when you do a SAVE AS you can change the TYPE to “all files” (it has the asterisk *)… then you save it as html.
Or, save as a txt file, then go into your windows explorer and right click and rename… you can change from txt to html there, also.