View Full Version : XML mp3 playlist
filete
April 28th, 2003, 07:56 PM
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
lostinbeta
April 29th, 2003, 12:21 AM
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.
liam
April 29th, 2003, 01:16 AM
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.
liam
April 29th, 2003, 01:17 AM
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...
filete
April 29th, 2003, 12:41 PM
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
liam
April 29th, 2003, 10:36 PM
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 :)
filete
April 29th, 2003, 10:53 PM
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?
liam
April 29th, 2003, 11:24 PM
filete -
are you using my amp? if you are, open the includes folder and look for the file called "functions.as" open that file up (any text/HTML editor will do) and look for the line:
loadSongList("play.xml");
on line ten of this file. then, change "play.xml" to whatever URL you'd like.
is that what you're asking me?
filete
April 29th, 2003, 11:32 PM
;)
So there is where you put the link of your XML playlist :)
I m gonna try ,
I will came back in a minute...
thanks
filete
April 29th, 2003, 11:59 PM
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?
liam
April 30th, 2003, 12:28 AM
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.
filete
April 30th, 2003, 12:38 AM
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
liam
April 30th, 2003, 01:58 AM
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
filete
April 30th, 2003, 12:56 PM
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
liam
April 30th, 2003, 05:19 PM
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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.