The Leader in Secure Video Delivery Software
Home

 
Creating a Clipstream™ Video playlist Page Three
Learning how to play multiple clips from a single applet continued...

<< Go back to Page Two

Reference the Playlist.csl in the applet code
As we learned before, you should have a series of similar video clips and a playlist.csl file that specifies when and in what order you want Clipsteam™ Video to play these clips. Your next step is to edit existing applet code so that the applet can make use of the playlist. our demo.

1. Find an existing Clipstream™ Video applet embedded in your target web page.

Tip: it's easier to use one that you know already works on your web server.

2. View the source and locate the Clipstream™ Video applet code.

3. Insert the VideoPlaylist parameter.

<param name="VideoPlaylist" value="[relative path from codebase][filename].csl">

ex.
<param name="VideoPlaylist" value="myvideos/playlist.csl">

Edit the VideoURL parameters
Now that you have referenced the playlist.csl text document, now you must adjust the existing VideoURL parameters (the parameters that tell the applet which clips to play).

1. In the applet code, scroll down to the VideoURL parameters.

You will see a list of parameters like so:

<param name="VideoURL1" value="High,500,myvideos/movie_500.vcs">
<param name="VideoURL2" value="Medium,350,myvideos/movie_350.vcs">

2. Make sure there are only as many VideoURLs as the bit rate range in all the videos you are playlisting

ex.
If you have 500,350, and 250kbps versions in your playlist, make sure you have a VideoURL1, VideoURL2 and VideoURL3.

3. In each VideoURL parameter, delete the paths and filenames of each .vcs.

You will now have VideoURL lines that look like this:

<param name="VideoURL1" value="High,500,">
<param name="VideoURL2" value="Medium,350,">

See a working demo of playlist >>


Go to Java.com Go to dsny.com