Solved

FLVplayback seek problem

Posted on 2009-04-13
2
3,687 Views
Last Modified: 2013-11-11
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.
m_oFlvPlayer.addEventListener(VideoEvent.SEEKED, onseek);
    ...
    ...
    ...
    private function onSeeked(e:VideoEvent):void
    {
    //seeked to desired position, now play the video
        m_oFlvPlayer.play();
    }

Open in new window

0
Comment
Question by:ashugarg00
2 Comments
 
LVL 19

Accepted Solution

by:
Jones911 earned 250 total points
ID: 24130443
This is most likely due to the keyFrames.  The seek in the flash player will jump to the last key frame.  Re-render your clips to force a key frame every 1 second and u can just to any second and it will seek smoothly.
0
 

Author Comment

by:ashugarg00
ID: 24130531
We use embedded cue points in the flv video file at certain intervals, and we cannot force keyframe at every 1 second.
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.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question