1. Save your music file to the same directory where you will be playing the music from, or reference a music directory of a remote URL where you know a music file already exists.
2. Open up a text editor such as Windows Notepad or JGsoft's EditPad (as I use).
3. Type in the FULL path to the Web Address (URL) of your MP3 or WMA music file.
If it's an MP3 music file, type it in like this:
http://www.domain.com/music/song.mp3
Or, if it's a Windows Media Audio (.wma) file, type it in like this:
http://www.domain.com/music/song.wma
The above 2 examples assumes that http://www.domain.com is your domain, that the music folder is where your MP3 or WMA file is located, and that song.mp3 and song.wma are the names of your .mp3 and .wma files.
Save this text file with an .m3u (universal playlist) extension.
Example: music.m3u
You can also include several songs (tracks) in one .m3u playlist file if you want to.
Example of one .m3u playlist file containing several songs:
http://www.domain.com/music/song1.mp3
http://www.domain.com/music/song2.mp3
http://www.domain.com/music/song3.mp3
http://www.domain.com/music/song4.mp3
There is no limit to how may songs you can include in an individual playlist. In a playlist with more than one song, each song is buffered and streamed individually. Therefore, it makes no difference how many songs are referenced in one playlist file. Each song will play one after the other without user intervention. Also, in a playlist with more than one song, the site visitor can use the Media Player controls to skip forward or back a track (song) in the playlist, and also has the option of 'previewing' a short clip or a series of short clips of each song in the playlist.
Here's a good site for a Code Generator:
http://www.ricocheting.com/js/music.html