Link to home
Start Free TrialLog in
Avatar of suroma
suromaFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of jkofte
jkofte
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can also search as jw mp3 player.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But my guess Google will encode your MP3 file and provide streaming to there Flash Media Application.
<embed type="application/x-shockwave-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

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();

Open in new window

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Guy Hengel [angelIII / a3]
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.
Avatar of suroma

ASKER

Sorry I had forgot about this and hadn't got any reminders?! Happy to dish out points.
Avatar of suroma

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.