I have added support for onImageData and MP3 cover images to Red5. Check out the Jing! I have really big screens so its a large flash video, you may need to resize your browser to see it all.
The example project source is here: http://svn1.cvsdude.com/osflash/red5/flash/trunk/player4/
Also, dont make fun of my code, its just a quick example!
Tags: demo, id3, image, mp3, onImageData, Red5
Sweet! Thanks Paul. So, apart from MP3 cover images being viewed, with this work in any stream being sent with an image attached? Or will it work with a netStream.send(“methodName”, bitmap) ?
– TK
Hello Paul,
I’ve been trying to get the onImageData callback to work with FMS3.5. Couldn’t access your code @ http://svn1.cvsdude.com/osflash/red5/flash/trunk/player4/.
I’m using FMS3.5 to stream mp3/aac content to actionscript3 clients. Everything is working fine except I’m not getting any onImageData callbacks. I get onMetaData & onPlayStatus callbacks without problems. I’ve checked the mp3 and m4a files….they’ve got artwork embedded. So what am I doing wrong? Any help would be appreciated
Robert
private function createMusicStream():void {
nsMusic = new NetStream(ncMusic);
var nsMusicClient:Object = new Object;
nsMusic.client = nsMusicClient;
nsMusicClient.onMetaData = onMetaData;
nsMusicClient.onPlayStatus = onPlayStatus;
nsMusicClient.onImageData = onImageData;
nsMusic.bufferTime = 3;;
nsMusic.addEventListener(NetStatusEvent.NET_STATUS, nsMusicStatus);
}
private function onImageData(imageData:Object):void {
trace(“imageData recieved! ” );
}