video.Maru
by polyGeek polyGeek logo



 

video captions

June 24th, 2007 . by polyGeek
polyGeek TV Watch a video tutorial covering how to use captions with video.Maru.

Download Source files for captions example

video.Maru makes it very easy to add captions to your videos. Simply create a TextField with an instance name of captions. Then make the text value of the TextField the path to your XML file. The image below shows an example.

Captions in video.Maru

Caption XML format

The XML format for the caption data is easy. You can set the attributes for hour, min, sec, and duration for each caption. And then the text that you would like to display as the caption - which can be HTML formated text. That’s about it.

Below is a code sample.

Here’s the code used for the captions in the video below.

If you integrating video.Maru with XML to display a series of videos and you would like to display captions then just add a captions=”path-2-file.xml” attribute to the nodes where you want to display captions. That’s about it.

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

3 Responses to “video captions”

  1. comment number 1 by: ayok

    hi,
    Is it possible to connect it with xml.php? I’ve tried to make the xml file with php, but I got error. Is there anyway to do this?

    Thank you,
    ayok

  2. comment number 2 by: Richard

    Hi,

    I can’t seem to get this to work? Is it possible to have FLA with it working, so I can see where I’m making the error?

  3. comment number 3 by: polyGeek

    @Richard, Sorry, the source files should have been there. I’ve just added them. I hope that fixes everything for you.

Leave a Reply

Name

Mail (never published)

Website