Using cue points with video.Maru
November 26th, 2007 . by polyGeekvideo.Maru now has the ability to respond to cue-points in your Flash videos.
Using this feature is very easy. Just use the videoMaruCreationComplete() event to tell video.Maru which function you want to use as a callback for when a cue point is reached. Then when a video passes over a cue-point it will send that information to your callback.
Below is an example. Look for the text field below the controls to change when a cue point is reached. You could use something like this to initiate changes in your design or display a message to your users.
Here is all the code that is needed to enable the reaction to cue points: ( Download Source )
To add cue points to your video using the Flash Video Encoder just select the Cue Points tab and drag the playhead across to the scene where you want to add a cue point. Then click the “+” button and give the cue point a name. That’s pretty much all there is to it. You could then use a switch () statement in your callback function to perform complex actions or like I did in the example just update a TextField.








Hi,
I love Video.Maru, but can you make a video tutorial how Video. Maru works with Cue Points??
I can’t understand from this tutorial.
I really appreciate for your help.
Thanks
Juliano
@Juliano, did you look at the source files?
I’ll put a video tutorial for cue points on my 2Do list but it will be a few weeks before I get to it.
Thanks for the suggestion.
Thank you, very much!!
I’ll be waiting for the tut.
What I am looking for something like this web site:
http://www.spiced-g.com/awards/pico-x/
I’ll like to know if is possible to make something like that with video maru?
If is possible, can you show us how to create something so high quality??
Thank’s again
Juliano
I’m sorry….
Can you tell me if that site was based in cue points??
Juliano
Dan,
I have an idea!!
Can you make Video Maru stop on the cue points??
Example:
Start to play the movie on the beginning, and the movie stops at the first cue point. Then click to “a button” and the movie continues to play until reaches the second cue point, and click to play to the third cue point, etc…
Do you think that’s possible???
Juliano
@Juliano, That should be simple. Just call ‘videoMaru.setIsPlaying( false ) in the cue point callback function that you set up.