It uses a simple arrayCollection to hold the data from the mp3 files, but this could be switched over to some xml with little work.
The goal of this project is to make an external mp3 player that can be put on multiple sites in a smaller version, that you can just feed an xml file to, or an xspf file to, there is already a flash version of this, but I wanted to make it as a component to use in my flex projects.
This project when completed will (in high hopes) be linked to by the http://musicplayer.sourceforge.net/ page...
anyway, here is the example
Just right click to view source!
These are additional links that I found, but did not put to much use.
http://www.onflex.org/code/2006/09/mxml-my-jamin-mp3-player-by-mike.html date 9/14/2006, type:MXML, author: Mike Givens
http://www.vipercreations.com/tutorials/Adobe%20Flex/29.html tutorial for mp3 player
One thing I noticed is that the progress bar seems to read the buffer, not the total file. So it constantly jumps. Maybe something you would not have noticed if you were running it on a LAN.
I was wondering how to add a volume controler and to make to load an xml playlist.... please help :)
Is this an active project for you? If so, maybe we can work together. I am interested in having a customizable mp3 on hand.
Let me know,
Ariel
anyway, I run a site called http://www.killtheheart.com
and i'm working on improving the mp3 player, this one has a major bug in it... that i've actually recently found after working on it spiratically for 6 months... so i don't really suggest using it, i'm working on building a new one, and am about to release the new version in my podcast player, it uses a new mp3Player.as file... and it's a slightly different than the one i posted way back when... the huge bug is fixed, but it's not as portable as i want it to be, the other thing that i do want to build is a solid .xspf ("spiff") player... it's an open source standard for xml playlist files... google it and do some research and we can talk about doing it together... i'll take care of the mp3 player class, if you want to work on the xml .xspf stuff, and being able to pass in parameters from the url
look at the previous version, and see everything you can do...
as far as the new mp3 player class... here is a link to the podcast player, the code isn't released yet, so you wont be able to get the source, but it's worth looking at...
<a href="http://axel.cfwebtools.com/devel/podcastplayer/bin..." target="_blank">PODCAST PLAYER - CLICK HERE</a>
thanks for the comments, keep em comin... i'm out of town, so i wont be able to check back till tomorrrow... i'll be online for a few more hours if you get this any time soon.
http://blog.flexcommunity.net/?p=15