This content has been marked as final. Show 5 replies
I would think you could place an HSlider control, and then move throughout the video based on cue points. See the help docs.
You will get the length of the video in its metadata (use the metadataReceived event)
Create a HSlider and assign the length of the video as its maximum value.
Now, trap the HSlider's 'change' event, find out the value and set it as the videoplayer's playheadTime. (videoPlayer.playheadTime = hslider.value)
A slider will allow you to jump from key frame to key frame basically, which depends on how the FLV was encoded (assuming we are tralking about regular Sorensen or VP6 FLVs, h264 may be different). A key frame is a frame that has the entire frame represented as a single complete image. Then subsequent I (i/eye) frames (I think lol), are the partial frames that describe what changed from the last frame. For this reason, FLV's of the codecs I mentioned above are only seekable to those keyframes. If you have ever watched a Youtube video or similar and clicked a spot on the seek bar and seen it jump much farther back or forward than you expected, it is because the video was encoded with large gaps between the keyframes for better compression. Or ever tried seeking in some AVI files in VLC where you see garbage on the screen for a few seconds then the video snaps in properly.
Certain other codecs support B frames (again I think), that allow bidirectional frame information (what changes to make the next frame, and what changes to make the previous frame), which is what allows seamless scrubbing in forward and reverse.
Hi bigosmallm thankz for the reply..
i have attached an hslider to the video i can forward and rewind the video .
but whats happening is that when the video is playing the slider thumb is not automatically.
what should i do to move the thumb continously .please give me some code.
You should bind slider.value to video current frame. Use <mx:Binding>