[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

FLVplayback seek problem

Posted on 2009-04-13
2
Medium Priority
?
3,728 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

650 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