Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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

11 Community Answers

JW Player

User  
0 rated :

@faughnan,

What version of the JW FLV Media Player are you using?

JW Player

User  
0 rated :

Thanks LefTy. I appreciate your assistance.

I have the current version, recently downloaded it.

How could I make it so the titles of the songs show and people could select a particular song?

JW Player

User  
0 rated :

Increase the *playlistsize* and the height here:bc.. swfobject.embedSWF('flashmp3/player.swf', 'player', '380', *'200'*, '9.0.124', false, flashvars, params, attributes);

JW Player

User  
0 rated :

LefTy,

How can I get the playlist to display titles like this?

http://wavelength.ipower.com/testplaylist.html

..Image doesn't have to be in it.

Thanks again for your help

JW Player

User  
0 rated :

The closest you can get is to use the Simple skin from: http://www.longtailvideo.com/addons/

JW Player

User  
-1 rated :

i like to have mp3 on my friendster

JW Player

User  
0 rated :

how can i get a playlist

JW Player

User  
0 rated :

bc.. <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<htmllang="en">

<head>

<title>SimpleMP3Player-JWMPv4.4.x-swfobjectv2.1</title>

<scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

<scripttype="text/javascript">
varflashvars=
{
'file':'flashmp3/playlist.xml',
'playlist':'bottom',
'playlistsize':'60',
'playlist.thumbs':'false',
'shuffle':'false',
'backcolor':'00000',
'frontcolor':'FFFFFF',
'lightcolor':'CCFF66',
'id':'playerId',
'autostart':'false'
};

varparams=
{
'allowfullscreen':'false',
'allowscriptaccess':'always',
'bgcolor':'#FFFFFF'
};

varattributes=
{
'id':'playerId',
'name':'playerId'
};

swfobject.embedSWF('flashmp3/player.swf','player','380','200','9.0.124',false,flashvars,params,attributes);
</script>

</head>

<body>

<divid="playercontainer"class="playercontainer"><aid="player"class="player"href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">GettheFlashPlugintoseethisvideo.</a></div>

</body>

</html>



*playlist.xml*bc.. <?xmlversion='1.0'encoding='UTF-8'?>
<playlistversion='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>



Test Page: *http://willswonders.myip.org:8082/faughnan.html*

JW Player

User  
0 rated :

Hey there!
Could an anyone show me step by step how I can create a playlist with multiple songs on my website using JW Player 5?
Thanks in advanvce:-)

JW Player

User  
0 rated :

So i am using HTML to make a playlist.
How do i do that?
Im also working in komodo edit.

JW Player

User  
0 rated :

@Stephen & Tyler

I like ot suggest that you visit my web site, www.mirana.net then go to the multimedia section and select the audio examples.

In example II you will see a playlist that contains both video and audio.

I use notepad++

here is a clipping of the playlist used

bc.. playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Example XSPF playlist for the JW Player</title>
<info>http://developer.longtailvideo.com/trac</info>
<tracklist>
<track>
<title>Multimedia Examples on Mirana Net</title>
<annotation>Video Examples</annotation>
<creator>jpg</creator>
<location>images/studio9d.jpg</location>
<image>images/studio9d.jpg</image>
<info>http://www.mirana.net</info>
</track>
<track>
<title>Movie - Avatar</title>
<creator>Video</creator>
<location>video/avatar.mp4</location>
<annotation>Avatar is a 2009 American epic science fiction film written and directed by James Cameron premiered in London on December 10, 2009. Became the highest-grossing film of all time worldwide.</annotation>
<image>contents/avatar1.jpg</image>
</track>
<track>
<title>Little Anthony - Concert</title>
<creator>Video</creator>
<annotation>Little Anthony and the Imperials reunited for a concert at Madison Square Garden is a rhythm and blues/soul/doo-wop vocal group from New York, first active in the 1950s.</annotation>
<location>flash/Little Anthony - Concert.flv</location>
<image>contents/little.png</image>
</track>
<track>
<title>Motown 25 - The Temptations Vs The Four Tops</title>
<creator>Video</creator>
<annotation>Motown 25 Yesterday, Today, Forever, a 1983 TV special. The Temptations and The Four Tops competed in a "Battle of the Bands" style event.</annotation>
<location>flash/Motown 25 - The Temptations Vs The Four Tops (live Motown).flv</location>
<image>contents/motown.png</image>
</track>



Feel free to contact me off my web site if you need more help

This question has received the maximum number of answers.