?
Solved

FLVplayback seek problem

Posted on 2009-04-13
2
Medium Priority
?
3,744 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 750 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 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