Posted By

adrianparr on 03/24/10


Tagged

flv video metadata as3 component FLVPlayback


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

tspitzr
ions


AS3 FLVPlayback Component Video Metadata


 / Published in: ActionScript 3
 

  1. flvPlayback.addEventListener(VideoEvent.READY, onFlvPlayback_READY);
  2.  
  3. function onFlvPlayback_READY(event:VideoEvent):void
  4. {
  5. trace("onFlvPlayback_READY");
  6. var tempFlvPlayback:FLVPlayback = event.target as FLVPlayback;
  7. trace("tempFlvPlayback.source: "+tempFlvPlayback.source);
  8.  
  9. var metaDataObj:Object = flvPlayback.metadata as Object;
  10. trace("metaDataObj.canSeekToEnd: "+metaDataObj.canSeekToEnd);
  11. trace("metaDataObj.cuePoints: "+metaDataObj.cuePoints);
  12. trace("metaDataObj.audiocodecid: "+metaDataObj.audiocodecid);
  13. trace("metaDataObj.audiodelay: "+metaDataObj.audiodelay);
  14. trace("metaDataObj.audiodatarate: "+metaDataObj.audiodatarate);
  15. trace("metaDataObj.videocodecid: "+metaDataObj.videocodecid);
  16. trace("metaDataObj.framerate: "+metaDataObj.framerate);
  17. trace("metaDataObj.videodatarate: "+metaDataObj.videodatarate);
  18. trace("metaDataObj.height: "+metaDataObj.height);
  19. trace("metaDataObj.width: "+metaDataObj.width);
  20. trace("metaDataObj.duration: "+metaDataObj.duration);
  21. }

Report this snippet  

You need to login to post a comment.