AS3 FLVPlayback Component Video Metadata


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.