These are the instructions I have used many times and it works well:
Just follow these steps to create an MP3 playlist and convince Windows, MacOS X, and Linux browsers to play the songs in sequence, in the background, for as long as your page is displayed or until the end of the last song, repeating if desired.
Step One. Upload the MP3 files to your website. I'll assume your site is called
www.example.com and the files are in a folder called example with the names a.mp3, b.mp3, c.mp3 and d.mp3.
Step Two. With plain old Windows Notepad or any other text editor, create a new text file called playlist.m3u. Place the following lines in the file:
http://www.example.com/example/a.mp3
http://www.example.com/example/b.mp3
http://www.example.com/example/c.mp3
http://www.example.com/example/d.mp3
Step Three. Save the playlist.m3u file and upload it to the example folder of your website,
www.example.com.
Insert the embed element anywhere inside the body element of your page. If you choose to make the player visible, place the embed element at an appropriate location within the page.Step Four. Use the <embed> element to insert an audio player in your web page, like this. The <embed> element should appear in the <body> element of the page. You can make the player invisible by setting the width and height attributes to zero, but you don't have to. You do have to leave the type attribute set to audio/mpeg or this technique will not work in Firefox for Windows, which is now a very common browser:
<embed src="http://www.example.com/example/playlist.m3u"
autostart="true"
type="audio/mpeg"
loop="true"/>
Your .m3u file can be on any website. The src attribute of the embed element can contain any valid URL. Step Five. Access your page. You should hear the four songs play in order and then repeat (because we set loop="true").