Solved

FLVplayback seek problem

Posted on 2009-04-13
2
3,678 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now