Right! Now I understand, thanks ;)

The reasons why you can't do this have been comprehensively covered by
others now, and you are right, it's a result of how the vidoe is
encoded. If the video is 10 seconds long and it seeks to to end there
must be no keyframes in the body of the video.

You still have a couple of possible options, depending on more
specifics for your project:

If you have access to the source video, and always know where you want
to seek to, you can re-encode the video, making sure you have actual
keyframes at the times you need to seek to. For most projects this
isn't practical.

Another option is to re-encode with regular (say every half second)
keyframes. This gives you a more granular level of control. You could
of course make *every* frame a keyframe, allowing you exact access to
every frame's timecode, but this will make your FLV filesize
unacceptably large.

Or, if you don't need your seek to *exactly* the same timecode every
time, you can seek to the keyframe before it, capture and display a
bitmap of that frame using the BitmapData class, keep the video
playing under the bitmap, using an interval to check the position of
the video, stop it as close as possible to the desired time and remove
the bitmap that was hiding the video...

Pete
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to