1 Reply Latest reply on Oct 11, 2010 9:55 AM by kglad

    FLVPlayback skip to NavCuePoint which is not downloaded yet (AS3)

    hundert10admin

      Hi everybody,

       

      i'm a little bit confused about the behavior of FLVPlayback playing a FLV-encoded Video downloaded via HTTP. I am using ActionScript 3.

       

      I added numerous Navigation-CuePoints to the FLV using Adobe Media Encoder.

       

      Skipping to a certain Nav-CuePoint using FLVPlayback.skipToNavCuePoint works fine... on my local machine. But when trying to skip to the same cue-point fails, if the FLV is downloaded from a Webserver via HTTP (swf is at the same website).

       

      When clicking the Button, which triggers the skipping, the BUFFERING_STATE_ENTERED-VideoEvent is fired correctly (preloading-Animation is set to visible), but other than expected only milliseconds later, the PLAYING_STATE_ENTERED-VideoEvent is fired (preloader is set invisible) and the video keeps on playing from the position it was when the button has been clicked.

       

      Example to clarify:

       

      CuePoint A is at 00:01:00.000

      CuePoint B is at 00:02:00.000

      CuePoint C is at 00:03:00.000

       

      (All three are of type "Navigation" and encoded into the FLV via Adobe Media Encoder)

       

      FLVPlayback is playing, let's say current Playheadtime is 00:01:25.000

       

      => Button is clicked

      => FLVPlayback.skipToNavCuePoint('B') is called

      => BUFFERING_STATE_ENTERED is fired (Preloader shows)

      => PLAYING_STATE_ENTERED is fired split seconds later (Preloader hides)

      => FLVPlayback plays Video at 00:01:25.000 (plus some milliseconds)

       

      - Skipping to CuePoint A succeeds

      - Skipping to CuePoint C fails as well

       

      Expected Behavior:

       

      => Button is clicked

      => FLVPlayback.skipToNavCuePoint('B') is called

      => BUFFERING_STATE_ENTERED is fired (Preloader shows)

      => PLAYING_STATE_ENTERED is fired when Video-File is loaded to CuePoint-Position (00:02:00.000)

      => FLVPlayback plays Video at 00:02:00.000

       

      What's wrong?

       

      Cheers

       

      Martin