video.Maru
by polyGeek polyGeek logo



 

Using cue points with video.Maru

November 26th, 2007 . by polyGeek

video.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.

cue points

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Technorati
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

10 Responses to “Using cue points with video.Maru”

  1. comment number 1 by: Juliano Pajaro

    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

  2. comment number 2 by: polyGeek

    @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.

  3. comment number 3 by: Juliano Pajaro

    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

  4. comment number 4 by: Juliano Pajaro

    I’m sorry….
    Can you tell me if that site was based in cue points??
    Juliano

  5. comment number 5 by: Juliano Pajaro

    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

  6. comment number 6 by: polyGeek

    @Juliano, That should be simple. Just call ‘videoMaru.setIsPlaying( false ) in the cue point callback function that you set up.

  7. comment number 7 by: Rick

    Dan,

    Is there a way to set in a text animation like a fly in from left or type writer effect or both?
    Thanks
    Rick

  8. comment number 8 by: Rick

    Dan,
    This is the same question but can it be done also with the captions XML animate the text?
    Is there a way to set in a text animation like a fly in from left or type writer effect or both?
    Thanks
    Rick

  9. comment number 9 by: Rick

    Dan,

    Another question about cue points is there a way set the duration of the text, or use a xml sheet like close caption sheet? Buy the way this is cool stuff!
    Thanks
    Rick

  10. comment number 10 by: polyGeek

    @Rick, there are no text animation effects built into videoMaru. You could intercept the text, or read the text from the TextField and create your own effects. I’m not sure how this would work with Actionscript 2. It’s been so long since I did anything with AS2 that I’ve forgotten a lot of the details.

Leave a Reply

Name

Mail (never published)

Website