suroma
asked on
Flash MP3 player for website
I am looking for a flash mp3 player for previewing mp3s on a website, exactly the same as you have on amazon to listen to each track on an album. This is to be used on an asp.net website. Any suggestions and experience would be welcome.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can also search as jw mp3 player.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can try to use Google Player
http://www.labnol.org/internet/design/html-embed-mp3-songs-podcasts-music-in-blogs-websites/2232/
http://www.labnol.org/internet/design/html-embed-mp3-songs-podcasts-music-in-blogs-websites/2232/
But my guess Google will encode your MP3 file and provide streaming to there Flash Media Application.
<embed type="application/x-shockw ave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" flashvars="audioUrl=http://www.newyearsevesong.com/samples/1anthemsample.mp3" width="400" height="27" quality="best"></embed>
I am wrong you can stream MP3 via Flash Player
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Sound.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Sound.html
var url:String = "http://www.newyearsevesong.com/samples/1anthemsample.mp3";
var song:SoundChannel;
function loadMP3() {
var request:URLRequest = new URLRequest(url);
var soundFactory:Sound = new Sound();
soundFactory.addEventListener(Event.COMPLETE, completeHandler);
soundFactory.addEventListener(Event.ID3, id3Handler);
soundFactory.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
soundFactory.addEventListener(ProgressEvent.PROGRESS, progressHandler);
soundFactory.load(request);
song = soundFactory.play();
}
function completeHandler(event:Event):void {
trace("completeHandler: " + event);
}
function id3Handler(event:Event):void {
trace("id3Handler: " + event);
}
function ioErrorHandler(event:Event):void {
trace("ioErrorHandler: " + event);
}
function progressHandler(event:ProgressEvent):void {
trace("progressHandler: " + event);
}
loadMP3();
and control on sound you can find here
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html
Excellent implementation of MP3Player I found on Google, including volume, buffering etc.
http://bumpslide.googlecode.com/svn/trunk/as3/classes/com/bumpslide/media/Mp3Player.as
http://bumpslide.googlecode.com/svn/trunk/as3/classes/com/bumpslide/media/Mp3Player.as
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've requested that this question be deleted for the following reason:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER
Sorry I had forgot about this and hadn't got any reminders?! Happy to dish out points.
ASKER
Thanks for the suggestions. I ended up using Soundmanager2 - http://www.schillmania.com/projects/soundmanager2/
Really good and easy to use for inline player especially.
Really good and easy to use for inline player especially.