24 Jun 2009, 3:03pm
jobs projects:

2 comments




  • fixing flex VideoDisplay CuePointManager

    I was cre­at­ing a Flex appli­ca­tion to show slides and a pre­sen­ta­tion video of pre­vi­ously recorded pre­sen­ta­tions. Accord­ingly, each slide should appear at a cer­tain point of time in the video — calls for cue points!

    As all slides and there appear­ance are stored in a text file in my case, I started adding cue points with Action­Script. But as soon as the video can be con­trolled with a slider, allow­ing to shift for– and back­wards, the event han­dler “cue­Point” was not trig­gered any more. Thus, the slides where not changed cor­rectly as the user jumps ahead, as the cue points between the pre­vi­ous and the new posi­tion did not cause and cue point event.

    Finally I wrote AdvCue­Point­Man­ager, inher­it­ing from Cue­Point­Man­ager, but which can deal with jump­ing 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" />
    30 Sep 2011, 9:01am
    by Ignazio


    Ty for shar­ing your code, i have already imple­mented the same algo­rithm for a sim­i­lar pur­pose, adding cue­Points to spark videodis­play, what i want to ask you is how do you get sure the last “use­ful” cue­Point get dis­patched cor­rectly? do you insert a sort of “dummy cue­point” near the end of the video?
    For dummy cue­point i mean a cue­point with­out any synch oper­a­tion linked to it.

    Unfor­tu­natelly, the post is two years old and as the app was coded within a work­ing con­tract, 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 pos­si­ble to trig­ger the cue point man­u­ally from within the code in case it’s the last one.

    *name

    *e-mail

    web site

    leave a comment