View Full Version : dynamic mp3 streaming
chipdouglas
May 14th, 2003, 07:59 AM
how do i create a mp3 player which streams external mp3s and loads all the tracks from an external file like asp etc?? I'm a newbie so examples would be neat:thumb:
titter
May 14th, 2003, 09:33 AM
With a little help from senocular, I have successfully completed a mp3 player with exactly what you want. It loads the tracks from a XML file, and will stream the mp3's. To see a preview, www.evilattitude.com/vexed
I have attached a zip with a test fla, and the example of the xml file. Remember the XML text will not parse until it is uploaded onto your webserver. The audio file will load. Don't forget to set the stream settings b4 you publish.
Enjoy!
chipdouglas
May 14th, 2003, 10:09 AM
Nice player but it's not dynamic..I mean, you have to add butttons in flash....I know nothing about ActionScript so if someone could help me modifying the script so i worked like a normal player with Previous track and Next track instead of 1.2.3 etc and a nice "Stop" and "play" button
titter
May 14th, 2003, 10:53 AM
There is a stop button :p Anyway I will mess with the code later today, or maybe some1 else can beat me too it.
liam
May 15th, 2003, 09:45 AM
i will upload this one more time:
my amp, totally dynamic, requires no altering of the flash file to add tracks, only altering of the xml file :)
it's exactly what you want, has all the control features, plus the volume slider doubles as a dynamic preloader bar for each song :)
alter it as you wish. :)
chipdouglas
May 15th, 2003, 10:40 AM
thanks! just the player i needed...in the words of Tony the Tiger: Grrrrrreeeeeeeeeeeeeeat!!=)
titter
May 15th, 2003, 06:11 PM
well :p, mines the same, totally dynamic....alter xml and upload the mp3. I found it useless to have a volume control and a stop button, so I never added a volume control.
liam
May 15th, 2003, 10:35 PM
glad you like! :)
useless to have a stop button? so no one can turn off the music? that's bad usability my friend.... ;)
and uh, no, yours isn't totally dynamic... if you want to add more than three mp3s you have to go in and add extra buttons to the .fla file.
titter
May 16th, 2003, 09:21 PM
"I found it useless to have a volume control and a stop button"
Y control the volume, when in mine u can just stop it ;)
liam
May 17th, 2003, 12:02 AM
why does your cd player have a volume control then?
...not everyone likes to listen to music full blast. i know they can just turn down their speakers, but the loader bar was already there so why not make it useful?
i don't appreciate my things being called useless either, thanks.
**end of rant**
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.