video.Maru
by polyGeek polyGeek logo



 

Switching XML files for video navigation

January 30th, 2008 . by polyGeek

Using XML to create navigation for your video files with videoMaru is very easy. But once you’ve loaded that XML file into videoMaru you’re pretty much locked in.

Not any more.

I’ve made a simple addition to the videoMaru API - that required a good bit of replumbing - that allows you to change the source XML that you’re using for navigation. Now you can switch between XML files easily. ( You’ll need the latest videoMaru 3.5 beta SWC for this located in the example fiile. )

Here’s all you need to use it:

videoMaru.switchXML( "path/file.xml" );

switchXML accepts either the path to a file or a string of XML code. So you could also do this:

videoMaru.switchXML( "<videos><video path=’movie.flv’ linkText=’Movie’></video></videos>” );

In usage you would have the above code inside of the videoMaruCreationComple function or inside an onRelease event.

Here’s an example in action using the later method of injecting an XML string. Click on the Group# buttons to switch the navigation.

[ download example ]

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 “Switching XML files for video navigation”

  1. comment number 1 by: will

    AWESOME!!!

  2. comment number 2 by: Matt

    First-timer, I am a video editor that is venturing into the somewhat crazy world of video for the net…I am trying to use the scroll bar with categories, but I need to scroll horizontally…I have been playing with it but with mixed results…Is there an easy way to do this…I have tried the obvious visual transform approach but seems to be getting a little surly with unexpected results…

    Thanks again for your great resources

    Kindly,
    matt

  3. comment number 3 by: polyGeek

    @Matt, I’ll put horizontal scrolling on the list of additions. It’s been months since I had any time to work on videoMaru. I’d like to finish things up on 3.5 by the end of summer. But that probably doesn’t help much with your current project.

Leave a Reply

Name

Mail (never published)

Website