Eric already provided you with a link to the manual page of the seek() method that answers this question.

Your problem is you want to seek to a point in time that is not a keyframe. You can not do this for a very good reason. A keyframe is an uncompressed frame and all the frames in-between keyframes are "change only" frames. You can not seek to a change only frame because it doesn't contain enough information to display the whole frame. Therefore, it starts with the closest keyframe and plays from there.

You probably witness this when you are watching a video online. Have you every watched a video and the video freezes because you lose the connection but when it resumes again it just starts drawing the changed areas of the video right on top of what you saw last? (I have Dish Network and I have to tell you this has been getting worse and worse with my TV service.) This happens because the video doesn't start from a keyframe. But, As soon as it gets to a keyframe, the whole video is clear again and plays normally. You can not intentionally seek to a non-keyframe using the seek() method.

-- James


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Helmut Granda wrote:
I think this is why I got confused..


In an FLV file seek will jump to the keyframe, which is the nearest to
the given time. In other words: you can seek only to keyframes.

Attila


What I am trying to do. Simple. I have a video that is 10 seconds long and i
need to use the seek method to land at 0.33, for some odd reason when I do
that the video jumps to second 10. I have tried to force the video to jump
to 0.33 using an interval as well as other methods but all seem to fail.
That is why I started to investigate in a different approach to do this. One
way to solve this was to use cue points. Of course the video has already
been compressed and I can't add cue points but I figured that we can add cue
points on the fly to the Media component. But unfortunately the video player
I am using is a 3rd party and I cant add cue points.

Does that makes more sense?

TIA


On 8/15/07, Peter B <[EMAIL PROTECTED]> wrote:

I sent this info couple of days ago. But I guess it didnt make it to the
list:


Yes, it made it to the list, it just didn't make your question any
clearer. FLVs are never treated by frame, they are treated by
timecode. If you describe what you are trying to *achieve*, it may
help others to help you.
_______________________________________________
[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


_______________________________________________
[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

_______________________________________________
[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