hi,
so here's one for you. I've been trying very diligently to
recieve id3 metadata from a streaming mp3. I have it streaming and
it works great, but I need to grab the duration in the metadata.
here's the jist of my code, i've googled this for hours and
have found little help, but what I did find is here:
id3_ns = new NetStream(connection);
id3_ns.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
id3_ns.addEventListener(Event.ID3, id3Handler)
id3_ns.client= new CustomClientAudio();
id3_ns.play("id3:" + videoName))
ns = new NetStream(connection);
ns.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
ns.play("mp3:" + videoName),0);
private function id3Handler(id3:Object):void
{
trace("duration: " + id3.duration);
}
public class CustomClientAudio
{
public function onMetaData(infoObject:Object):void
{
}
public function onPlayStatus(infoObject:Object):void{
}
}
}
The only other thing I can think of trying is see if my mp3
is screwed-up, but I don't think it is because I can see the
metadata in the properties of the file.
If anyone can point me in a right direction, I would be
forever greatful.
Thanks!
Drew