ashugarg00
asked on
FLVplayback seek problem
Hi All,
I am using as3 and Adobe flash CS3 and am facing a problem regarding video seek event. Many a times, though I issue seek command on the FLVPlayback object, I do not get the "seeked" event. I am seeking at different play head position than current. I couldn't find when and why this happens. It is important for me to get this event as my flow depends on this.
Also, sometimes I get this event and I start playing the video assuming it is seeked to desired position, but it starts playing from the beginning. I am really frustrated because of this.
Please suggest some solution for this. Thanks in advance.
I am using as3 and Adobe flash CS3 and am facing a problem regarding video seek event. Many a times, though I issue seek command on the FLVPlayback object, I do not get the "seeked" event. I am seeking at different play head position than current. I couldn't find when and why this happens. It is important for me to get this event as my flow depends on this.
Also, sometimes I get this event and I start playing the video assuming it is seeked to desired position, but it starts playing from the beginning. I am really frustrated because of this.
Please suggest some solution for this. Thanks in advance.
m_oFlvPlayer.addEventListener(VideoEvent.SEEKED, onseek);
...
...
...
private function onSeeked(e:VideoEvent):void
{
//seeked to desired position, now play the video
m_oFlvPlayer.play();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am having this problem only at the first time after setting source. I seek to a specific cuepoint on receving the METADATA_RECEIVED event. But it fails to send SEEKED event sometimes. If i receive the SEEKED event successfully here then thereafter when i seek to a different cuepoint it works perfectly and everytime i get the SEEKED event.