git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get title from mp3 stream


Hi all,

i want to get the tile of the songs playing on mp3 stream:
it seems that the onID3InfoReceived is not fired, any ideas how to get the
titles?


private var req:URLRequest;
private var context:SoundLoaderContext = new SoundLoaderContext(8000);	
private var s:Sound;	
private var channel:SoundChannel = new SoundChannel();

req = new
URLRequest("https://swr-swr3-live.sslcast.addradio.de/swr/swr3/live/mp3/128/stream.mp3";);
s = new Sound(req, context);
s.addEventListener(Event.ID3, onID3InfoReceived);
s.addEventListener(Event.COMPLETE, completeHandler);
channel = s.play();

protected function onID3InfoReceived(event:Event):void { 
var id3:ID3Info = event.target.id3; 
trace("Received ID3 Info:"); 
for (var propName:String in id3) 
{ 
trace(propName + " = " + id3[propName]); 
} 
}	

thx for help!

 



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flex-development/msg02463.html on line 105
Call Stack
#TimeMemoryFunctionLocation
10.0006363400{main}( ).../msg02463.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flex-development/msg02463.html on line 105
Call Stack
#TimeMemoryFunctionLocation
10.0006363400{main}( ).../msg02463.html:0