XML mp3 playlist

Hello there,

I just install a sound control component to play mp3 files.
But it needs a XML playlist…

I´ve be trying to figure out, but i can´t make it work…

Does anyone can tell me what is the XML code you put on the XML file,
to make the Sound Control play mp3 files that are on server?

Thanks

If you are talking about any one of these…

http://www.flashcomponents.net/component.cfm?nav=2&id=220

http://www.flashcomponents.net/component.cfm?nav=2&id=273

Then download the .zip files they have on the site. The first one comes with a readme.txt file AND example .xml files for you to check out. The second one just has example .xml files that you can check out.

Either way, the set up all has to do with what component you are using, there is no 1 way to do it since it all depends on how you are loading the info into Flash.

filete -

check this out. i call it vmkAMPv1.03. all you have to do is change track names/urls in the (straightforward) xml file to get it to work. feel free to change/modify as you like.

sorry, attached is the file.

the code in this one is:

- <XML>
- <Playlist>
- <Song>
  <Name>Song 1</Name> 
  <Src>sound/song1.mp3</Src> 
  <Artist>Blah</Artist> 
  </Song>
- <Song>
  <Name>Song 2</Name> 
  <Src>sound/song2.mp3</Src> 
  <Artist>Blah</Artist> 
  </Song>
- <Song>
  <Name>Song 3</Name> 
  <Src>sound/song3.mp3</Src> 
  <Artist>Blah</Artist> 
  </Song>
- </Playlist>
  </XML>

and so on and so forth…

Hi liam

Thanks for the help , but when i press play i get the output window
with this error :

    "Error opening URL "file:///filete/Desktop%20Folder/vmkamp%20Folder/"

It seems that is not going to the xml playlist…

Can you know what is happen?

thanks

filete -

is this on your local machine or on your webserver?

it’s best that the folder you have your mp3’s in is in the same folder that your swf/html files are. so if your swf was in folder flash, your songs should be in folder flash/sounds .

get back to me :slight_smile:

Hi liam ,

good to see you,

What i don´t understand is how can you choose the folder where
you want the sound control to look for the XML playlist.

Like if i want to put the XML file in a folder called “MUSIC” in my desktop,
or if i want him to look on my server for example:

      "http://www.mydomain.com/music/playlist.xml"

So this way you can put your XML playlist where ever you want, as
long as you tell me where to look.

Can you understand my point?

filete -

are you using my amp? if you are, open the [SIZE=1]includes[/SIZE] folder and look for the file called “functions.as” open that file up (any text/HTML editor will do) and look for the line:

[AS]loadSongList(“play.xml”);[/AS]

on line ten of this file. then, change “play.xml” to whatever URL you’d like.

is that what you’re asking me?

:wink:

So there is where you put the link of your XML playlist :slight_smile:

I m gonna try ,
I will came back in a minute…

thanks

Im back

:-\ I´ve put a URL there, but i keep getting the same error…

   "Error opening URL "file:///filete/Desktop%20Folder/vmkamp%20Folder/"

?? What can it be?
I´ve notice that the “functions.as” file as a lot of code regarding the xml playlist.
Could it be that we have to change it on another line?

filete -

no, that’s the only line of code you need to change.

you shouldn’t use file:// to link to something that will eventually be on the web. can you send the files you are using to me at

liam@vmkdsn.com

or put them up on your server so i can download them and figure it out for you? because this is pretty straightforward and i’m not sure what could be going wrong.

So , you are saying that you have to put
“file//” and then the url?

If you want try to play this playlist , this is the one that i´m doing the test.

      http://www.filete.0catch.com/xml/callosama.xml

Thanks

my amp won’t support that xml.

you’re using attributes in your code, and the amp won’t be able to parse that. use the xml playlist provided if you want to use the amp.

and, uh, no, i’m not telling you to use file:// in your urls, which is exactly why i said:

you shouldn’t use file:// to link to something that will eventually be on the web

hello again

Ok, i ´ve change the file

I used the same attributes of your playlist, and i keep getting the same error:

     "Error opening URL      file:///filete/Desktop%20Folder/vmkamp%20Folder/"

??
Try to check this new xml file:

  http://www.filete.0catch.com/xml/osama.xml

thanks

can you please post the files you’re working with?

.flas. xml, includes…

because i can’t tell if your xml will work unless i see the actionscript that will parse it. i can’t tell if you are using my amp or not because you have never told me directly.

unless i’m interpreting this wrong, i think you think that xml does something, like html does. xml in fact does nothing, it is merely a way to store info in an easily parsable format.

please post your files, otherwise im not sure how to help you, since your descriptions are quite vague and simply posting me a link to the xml you’re trying to use doesn’t help me at all.