fixing flex VideoDisplay CuePointManager

I was creating a Flex application to show slides and a presentation video of previously recorded presentations. Accordingly, each slide should appear at a certain point of time in the video – calls for cue points!

As all slides and there appearance are stored in a text file in my case, I started adding cue points with ActionScript. But as soon as the video can be controlled with a slider, allowing to shift for- and backwards, the event handler “cuePoint” was not triggered any more. Thus, the slides where not changed correctly as the user jumps ahead, as the cue points between the previous and the new position did not cause and cue point event.

Finally I wrote AdvCuePointManager, inheriting from CuePointManager, but which can deal with jumping back- and forward.

Copy it to “<your source folder>/net/svenbuschbeck/flex/video” and use it as follows:

<mx:VideoDisplay cuePointManagerClass="net.svenbuschbeck.flex.video.AdvCuePointManager" />

8 Replies to “fixing flex VideoDisplay CuePointManager”

  1. Ty for sharing your code, i have already implemented the same algorithm for a similar purpose, adding cuePoints to spark videodisplay, what i want to ask you is how do you get sure the last “useful” cuePoint get dispatched correctly? do you insert a sort of “dummy cuepoint” near the end of the video?
    For dummy cuepoint i mean a cuepoint without any synch operation linked to it.

    1. Unfortunatelly, the post is two years old and as the app was coded within a working contract, I do not have the code at hand any more.
      A dummy cue-point does not seem to be a bad idea. Besides that, I guess it might also be possible to trigger the cue point manually from within the code in case it’s the last one.

  2. Ty for sharing your code, i have already implemented the same algorithm for a similar purpose, adding cuePoints to spark videodisplay, what i want to ask you is how do you get sure the last “useful” cuePoint get dispatched correctly? do you insert a sort of “dummy cuepoint” near the end of the video?
    For dummy cuepoint i mean a cuepoint without any synch operation linked to it.

    1. Unfortunatelly, the post is two years old and as the app was coded within a working contract, I do not have the code at hand any more.
      A dummy cue-point does not seem to be a bad idea. Besides that, I guess it might also be possible to trigger the cue point manually from within the code in case it’s the last one.

Leave a Reply

Your email address will not be published. Required fields are marked *