Friday, August 15, 2008

New and Improved VideoViewer Class (AS3)

I have been working hard on improving my VideoViewer class. Some of the new features is the possibility to make a play list. The play list is made in an xml file. Even with the playlist you can still have it play one video or play the play list. Along with that comes a config.xml file with a slew of settings such as the delay between videos when using the play list function. Within the play list file (videos.xml), settings such as the buffer time, height and width will be able to be set.



The new main feature is the play list feature. With this you set most of your video information in an xml file named videos.xml. In the videos file you set the path of the video, the width and height, the title and the buffer. The buffer setting sets the amount of seconds are loaded before the video plays.

The other new xml file included with the VideoViewer is config.xml. As of now this file controls the delay between videos when using the play list feature to play more than one video. A percentage offset for when using the new Dynamic Progression Bar which will be released very soon. Lastly a video offset setting which offsets the slider when the position of your video isn't located at 0 on the x axis. This becomes useful in the new ProgressionBar.

The added function to use the play list is loadVideoList();. Where in previous versions you would put VideoViewer.file = "filepath"; you now put VideoViewer.loadVideoList();. Using the file property is still functional just in case you want to change the video in the code, but using the play list allows you to easily update your videos by changing the path in the xml file instead of having to open up Flash again.

There are some other added functions but they relate to other NEW classes that will be released in the near future. So they will be addressed when those new classes see the light of day. Other than the things mentioned above, everything else is the same. Below is an example the play list in use.

Things to Look forward to

DynamicProgressionBar
ProgressionBar
MediaTimer

Download New VideoViewer Class Here

Play List Example

No comments:

Post a Comment