
How to create mp3 playlist for multiple songs
creating a mp3 player that will play multiple songs. I have tried redoing this af ew different times to no avail....could someone please steer me in the right direction?
JW flv files (player.swf, swfobject.js,etc.) are loaded to /flashmp3 directory.
mp3s are in /mp3 directory.
html:
<script type="text/javascript">
var s3 = new SWFObject('flashmp3/player.swf', 'playlist', '380', '209',
'7');
s3.addVariable('file', 'flashmp3/playlist.xml');
s3.addVariable('width','380');
s3.addVariable('height','209');
s3.addVariable('displayheight', '120');
s3.addVariable('backcolor', '0x00000');
s3.addVariable('frontcolor', '0xFFFFFF');
s3.addVariable('lightcolor', '0xCCFF66');
s3.addVariable('thumbsinplaylist', 'false');
s3.addVariable('shuffle', 'false');
s3.addVariable('autostart', 'false');
s3.write('player3');
</script>
xml looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<title>Breathe</title>
<location>http://wavelength.ipower.com/mp3/Breathe.mp3</location>
<image>http://my.domain.com/path/image01.jpg</image>
</track>
<track>
<title>Respect</title>
<location>http://wavelength.ipower.com/mp3/Respect.mp3</location>
<image>http://my.domain.com/path/image02.jpg</image>
</track>
</trackList>
</playlist>
thanks in advance