Skip to main content
Participant
May 22, 2007
Question

seek event

  • May 22, 2007
  • 4 replies
  • 295 views
When using the FLVPlayback methods seek or seekPercent the seek event is not triggered.

I'm using seekPercent to change positions in the FLVPlayback control, and want to know when the method has completed. The documentation says to use the seek event, but its not working.

I'm running Flash 8 on XP. Any help appreciated.
This topic has been closed for replies.

4 replies

Inspiring
May 22, 2007
seeking property?
FLVPlayback.SEEKING is a class constant to use to check if the current state is seeking. As such it is always defined as "seeking".

You can use it compare with the myFLVInstance.state property or check the value of state in a stateChange event... e.g. http://livedocs.adobe.com/flash/8/main/00003600.html#wp3759149

rvailAuthor
Participant
May 22, 2007
Did you ever try the SEEKING property? It doesn't seem to change... I keep printing it with trace and it says "seeking" every time even when the video is done and its doing nothing.
Inspiring
May 22, 2007
Inspiring
May 22, 2007
You may have discovered what I did. You can't seek to a paused state. So if you are in a paused state then a seek doesn't seem to move the FLV playhead until a play() is issued. (At least on a progressive download anyway, haven't tried it with a true streaming video)

To get this to work I think I used a seek, play then pause.
Read all the comments at the bottom of this page. Also if its a progressive flv, you can only seek to keyframes... something to remember.