I am needing a Flash MP3 player for a project. I would like it to work similar to the itunes websites. (Example: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=329963255&id=329963051&s=143441&ign-mpt=uo%3D6 )
There will be a list of items (created with PHP) with a play button next to them (separate flash files). It will be just a simple play / stop button.
When one is played, I would like it to start streaming the MP3. When another is played, it must stop any other that are playing.
I do not want the MP3 files preloaded because there could be many instances on the page. I want them loaded when the play button is pressed and start streaming as soon as there is enough information loaded.
Needs a transparent background and be able to import graphic files (preferably png files)from a folder for the play / play hover / stop / stop hover buttons.
The data for the players should be imported from another PHP file (I believe using a loadVariables function from the flash file).
For the player to know what to play it will be added to the URL / embed code. Example: flashmp3player.swf?playerid=[$tracknum]&buttondir=/path-to-button-folder/&track=".MD5($track['music_id'])."
The path-to-button-folder will tell it which png files to load for play / stop (play.png, playhover.png, stop.png, stophover.png).
The $track will be the track ID to play which then in the imported file from the flash will gather info from the database.
The audio file will either be a link to the MP3 or a PHP file generating the MP3 file. I need to find a way for the MP3 file not to cache, but may be able to do this with the PHP file. Audio file security is important.