Thanks for the tip. I made some research to find out the supported bit rates of the Flash Player. I did not find anything on the adobe/macromedia site, but I found this: http://www.draftlight.net/dnex/mp3player/mp3format.php It looks like variable bit rate (VBR) are not well supported but constant bit rate are ok. We have some MP3s encoded at 137kbps and at 320Kbps working with Flex2/Flash Player 8.5. So apparently, there is no bit rate limitation. Any official word on this from the Adobe team? I suppose that those problems are related to the alpha status of the player 8.5. I will check with beta2 when it is released. Benoit Hediard PS: on the other side, FLV playback works great!
_____ De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Philippe Maegerman Envoyé : mardi 14 mars 2006 13:04 À : [email protected] Objet : RE : [flexcoders] Flex2 : MP3 Audio player, play problem... I remember reading in the flash 7 doc that the flash player can't read mp3s encoded at higher rate than 140K. Philippe _____ De: [email protected] de la part de Benoit Hediard Date: lun. 3/13/2006 16:12 À: [email protected] Objet : RE: [flexcoders] Flex2 : MP3 Audio player, play problem... No, I've not tried to do the AS example without Flex involved. It looks like the problem is not coming from flex but from the MP3 files or a buggy MP3 support in the 8.5 player. With some MP3 files, it works, with others it doesn't... But the MP3 files have been encoded directly from a CD with iTunes, so I don't understand. I've put online a (pretty buggy and unfinished) Flex2 audio player here (with view source option) : http://www.benorama.com/music/AudioPlayer.html You can try different uploaded MP3s : - AdamF.mp3 (encoded with iTunes), the song plays but the sound is cut all the time, ID3 are not detected, when the load is complete, it stops the song (channel soundComplete event mixed with sound load complete event?)... - Unknown.mp3, this one works (no ID3 on this one), - Herbaliser.mp3, this one does not play at all (immediate channel soundComplete event), ID3 are loaded at the end of the load, - CYHSY.mp3 (encoded with iTunes), this one does not play at all (immediate channel soundComplete event), ID3 are not detected. I can play all those songs with iTunes or Window Media Player without any problem. Other bugs : - the pause does not work, it looks like sound.play(position) does not take the "position" argument into account, - when using the audio player inside another app, the loading/play progress does not work at all. The load progress bytesTotal does not have a fix value, it is growing all the time... Has anyone successfully built a MP3 audio player with Flex2 beta1? This week, next step: a FLV video player... ;) Benoit Hediard -----Message d'origine----- De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Matt Chotin Envoyé : dimanche 12 mars 2006 22:17 À : [email protected] Objet : RE: [flexcoders] Flex2 : MP3 Audio player, play problem... Have you tried doing the AS example without Flex involved? Based on everything I can see I think it looks OK. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Benoit Hediard Sent: Friday, March 10, 2006 11:51 AM To: [email protected] Subject: [flexcoders] Flex2 : MP3 Audio player, play problem... I'm currently trying to build a very basic MP3 audio player with Flex2, based on the SoundChannel code example. The MP3 file is successfully loaded, ID3 tags are available, length is > 0. But when I press play I've got immediatly the soundComplete event. What's wrong here? I've tried with several MP3, same problem... <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" creationComplete="onCreationComplete()"> <mx:Script> <![CDATA[ import flash.util.trace; import flash.util.Timer; import flash.net.URLRequest; import flash.media.Sound; import flash.media.SoundChannel; import flash.events.*; private var soundUrl:String = "http://localhost/test.mp3"; private var soundFactory:Sound; private var channel:SoundChannel; private var positionTimer:Timer; private function onCreationComplete():void { var request:URLRequest = new URLRequest(soundUrl); soundFactory = 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); } private function positionTimerHandler(event:TimerEvent):void { //trace("positionTimerHandler: " + channel.position); } private function completeHandler(event:Event):void { trace("completeHandler: " + event); playButton.enabled = true; } private function id3Handler(event:Event):void { trace("id3Handler: " + event); } private function ioErrorHandler(event:Event):void { trace("ioErrorHandler: " + event); } private function progressHandler(event:ProgressEvent):void { trace("progressHandler: " + event); } private function soundCompleteHandler(event:Event):void { trace("soundCompleteHandler: " + event); positionTimer.stop(); } private function onPlayClick():void { channel = soundFactory.play(); channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler); positionTimer = new Timer(50); positionTimer.addEventListener(TimerEvent.TIMER, positionTimerHandler); positionTimer.start(); } ]]> </mx:Script> <mx:Button id="playButton" click="onPlayClick()" enabled="false" label="Play" /> </mx:Application> Benoit Hediard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site +design+development&w2=Computer+software+development&w3=Software+design+and+ development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1 66&.sig=L-4QTvxB_quFDtMyhrQaHQ> site design development Computer <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+si te+design+development&w2=Computer+software+development&w3=Software+design+an d+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s =166&.sig=lvQjSRfQDfWudJSe1lLjHw> software development Software <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+ site+design+development&w2=Computer+software+development&w3=Software+design+ and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5 &s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> design and development Macromedia <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+deve lopment&w2=Computer+software+development&w3=Software+design+and+development& w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6n PIrz7_EpZI36cYzBjw> flex Software <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=W eb+site+design+development&w2=Computer+software+development&w3=Software+desi gn+and+development&w4=Macromedia+flex&w5=Software+development+best+practice& c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> development best practice _____ YAHOO! GROUPS LINKS * Visit your group "flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ ------------------------------------------------------------------ **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ------------------------------------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
<<attachment: winmail.dat>>

