Axelology
Posted At : February 21, 2007 10:58 AM | Posted By : Axel Jensen

Flex MP3 Player

This mp3 player takes the simple mp3 player on adobe labs, http://labs.flexcoders.nl/?p=22 and adds multiple tracks capabilities.

[updated: 10.17.07] i've released the open source flex mp3 player, its the version that is much better/more advanced than this... click here go read the entry.

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

CLICK HERE TO VIEW 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

Related Blog Entries

Comments
Great proof of concept.

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.
# Posted By TJ Downes | 2/21/07 12:15 PM
This is nice. Do you have any examples for loading a xspf playlist?
# Posted By Tom | 4/13/07 10:08 PM
hi there
I was wondering how to add a volume controler and to make to load an xml playlist.... please help :)
# Posted By Andrew | 5/27/07 1:56 AM
Thank you for sharing this code. Once working, it is nice to have. I had problems compiling initially due to the root Application file and the value object being named the same. I changed the VO class name and it works fine now.

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
# Posted By Ariel Jakobovits | 6/10/07 1:16 AM
Hey, thanks for reading the blog... hopefully you subscribe, everything i post i share the code!

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.
# Posted By Axel | 6/11/07 9:41 AM
# Posted By metalMan | 2/5/08 6:00 PM



Blog provided and hosted by CF Webtools. Blog Sofware by Ray Camden.