video captions
June 24th, 2007 . by polyGeek![]() |
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.
![]() |
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.









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
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?
@Richard, Sorry, the source files should have been there. I’ve just added them. I hope that fixes everything for you.