/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
flvPlayback.addEventListener(VideoEvent.READY, onFlvPlayback_READY); function onFlvPlayback_READY(event:VideoEvent):void { trace("onFlvPlayback_READY"); var tempFlvPlayback:FLVPlayback = event.target as FLVPlayback; trace("tempFlvPlayback.source: "+tempFlvPlayback.source); var metaDataObj:Object = flvPlayback.metadata as Object; trace("metaDataObj.canSeekToEnd: "+metaDataObj.canSeekToEnd); trace("metaDataObj.cuePoints: "+metaDataObj.cuePoints); trace("metaDataObj.audiocodecid: "+metaDataObj.audiocodecid); trace("metaDataObj.audiodelay: "+metaDataObj.audiodelay); trace("metaDataObj.audiodatarate: "+metaDataObj.audiodatarate); trace("metaDataObj.videocodecid: "+metaDataObj.videocodecid); trace("metaDataObj.framerate: "+metaDataObj.framerate); trace("metaDataObj.videodatarate: "+metaDataObj.videodatarate); trace("metaDataObj.height: "+metaDataObj.height); trace("metaDataObj.width: "+metaDataObj.width); trace("metaDataObj.duration: "+metaDataObj.duration); }