MP3 Playlist

  • 1
  • Question
  • Updated 8 years ago
  • Answered
How can I generate a mp3 playlist to run the Flash Mp3 Player from ?
Photo of Felipe


  • 58 Posts
  • 0 Reply Likes
  • unsure

Posted 8 years ago

  • 1
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Felipe,

I am not 100% sure if this is the same widget box widget that your are using but we had a user with a similar request - wanting to add a playlist to his Yola site.

He came back with:

"If I'm understanding everything correctly, this particular widget (Flash MP3 Player) won't work using an XSPF playlist hosted through Yola. For more info, you can view my Widgetbox question thread here:

It seems that does not recognize the correct MIME type of XSPF files (application/xspf+xml rather than text/plain, audio/xspf, or text/xml). Because of this, an XSPF file hosted at Yola does not function properly, at least not with this widget."

You can see the thread here:

He does offer a solution at the end of the thread - I hope it helps.
Photo of lambofgod


  • 875 Posts
  • 35 Reply Likes
The following script plays music at random. You can have up to 10 different songs. Just make sure to change the url for each song.

var sound1="urlofsong1"
var sound2="urlofsong2"
var sound3="urlofsong3"
var sound4="urlofsong4"
var sound5="urlofsong5"
var sound6="urlofsong6"
var sound7="urlofsong7"
var sound8="urlofsong8"
var sound9="urlofsong9"
var sound10="urlofsong10"
var x=Math.round(Math.random()*9)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')

Just say something if you need help or if you have a problem with it working.
Photo of Felipe


  • 58 Posts
  • 0 Reply Likes
Thank you lambofgod for your feedback. What I actually need is a mp3 playlist widget from where I can select an specific audio file to play.

Please take a look at my website ( Go to Audio Mensajes; at the bottom of the page there a sample of a playlist. The only problem are the advertisement announcements which I could do without. It seems there is no option to eliminate them.

Photo of lambofgod


  • 875 Posts
  • 35 Reply Likes
Thank you for explaining in greater detail of which you would like. I will look around for something that'll suit your needs. If I can't find something then I will have to break out the books and custom code something for you. Which will take longer to do.