Adding an MP3 playlist to your site
May 11th, 2009
Many times, you may want to have a listener stream MP3s from your site, but you don’t have any streaming software set up. One solution is to create an M3U file which acts as a playlist that opens up with many mainstream MP3 players such as iTunes and Winamp. Following is an example of an M3U playlist:
#EXTM3U
#EXTINF:199,Radiohead - Creep
http://www.yoursite.com/radiohead-creep.mp3
#EXTINF:217,Pink Floyd - Money
http://www.yoursite.com/pinkfloyd-money.mp3
The .m3u file can be placed on any web server, and linked to a web page with the standard a href tag. For instance, to link to a file named “playlist.m3u” from a web page in the same directory with the file, the link could be:
<a href="playlist.m3u">Play my playlist</a>
