TSVIDEOPLAYER

We recommend
Other Dreamweaver Extensions:
flash music player
mp3 music flash
TSVideo, a video player that offers a simple, but robust solution
for all those who wish to publish videos without requiring any professional skills.

Video Player Configuration Variables

CONFIGURATION VARIABLES

TSVideo Player can be set up, using certain variables, to control its buttons' visibility, either from the video or from the playlist, These configuration variables are introduced via the flashvars attribute or as parameters in the video player's URL.

Example #1: Use of flashvars to define the configuration variables:

<object id="videoplayer1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="356" height="300">
    <param name="movie" value="TSVideo/TSVideo.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="window" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="swliveconnect" value="true" />
    <param name="FlashVars" value="controlbar=1&playlistbutton=1&fullscreenbutton=1&captionbutton=1&previousbutton=1&
    nextbutton=1&volumecontrols=1&autoplay=1&volume=100&
    repeat=0&screencolor=#000000&tone=#990000&alpha=10&load=TSVideo/VideoPlayer1/playlist.xml" />
    <embed name="videoplayer1" src="TSVideo/TSVideo.swf" quality="high" wmode="window" flashvars="controlbar=1&playlistbutton=1&
    fullscreenbutton=1&captionbutton=1&previousbutton=1&nextbutton=1&
    volumecontrols=1&autoplay=1&volume=100&repeat=0&screencolor=#000000&tone=#990000&alpha=10&
    load=TSVideo/VideoPlayer1/playlist.xml" allowfullscreen="true" allowscriptaccess="always" swliveconnect="true"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
     type="application/x-shockwave-flash" width="356" height="300">
    </embed>
</object>

Example #2: Use of the video player's URL to define the configuration variables

<object id="videoplayer1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="356" height="300">
    <param name="movie" value="TSVideo/TSVideo.swf?
    controlbar=1&playlistbutton=1&fullscreenbutton=1&captionbutton=1&previousbutton=1&nextbutton=1&
    volumecontrols=1&autoplay=1&volume=100&repeat=0&screencolor=#000000&tone=#990000&alpha=10&load=TSVideo/VideoPlayer1/playlist.xml" />
    <param name="quality" value="high" />
    <param name="wmode" value="window" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="swliveconnect" value="true" />
    <embed name="videoplayer1" src="TSVideo/TSVideo.swf?
    controlbar=1&playlistbutton=1&fullscreenbutton=1&captionbutton=1&previousbutton=1&nextbutton=1&volumecontrols=1&autoplay=1&volume=100&
    repeat=0&screencolor=#000000&tone=#990000&alpha=10&load=TSVideo/VideoPlayer1/playlist.xml" quality="high" wmode="window"
    allowfullscreen="true" allowscriptaccess="always" swliveconnect="true"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
    width="356" height="300">
    </embed>
</object>

The possible configuration variables are described below:

controlbar can have values 1 or 0, which determines whether the bar is shown or not. If the control bar is hidden, so are all the controls. Usually the control bar is kept hidden when a external interface is used with the TSVideo Player.

playlistbutton is used to hide or show the button that shows the playlist. Its value can be 0 or 1.

fullscreenbutton is used to hide or show the button that enlarges the active video to a Full Screen mode. Its value can be 0 or 1.

captionbutton is used to hide or show the button that shows or hides the subtitles associated with the active video. Its value can be 0 or 1.

previousbutton is used to show or hide the button that allows to select - in the playlist - the video preceding the one that is being played. Its value can be 0 or 1.

nextbutton is used to hide or show the button that allows to select - in the playlist - the video following the one being played. Its value can be 0 or 1.

volumecontrols is used to hide or show the volume controls. Both the Mute button and the volume bar are included in the "Volume Controls". The value can be 0 or 1.

autoplay determines if the video player should start automatically the first video in the playlist. Value can be 0 or 1.

volume initiates the video player with a pre-set volume value. It can be any integer between 0 and 100.

repeat defines whether the videos in the playlist are repeated. The repeat parameter can have any of the following values: 0 if the videos are not repeated; 1 if the active video should be played over and over again; 2 if the entire playlist is played first, and once the last video is completed, the whole playlist is repeated, starting with the 1st video.

screencolor defines the color of the background behind the video. The acceptable values are: transparent, screen is not shown, or a valid color code in the format #RRGGBB.

tone introduces a code in the format #RRGGBB; it changes the color of the TSVideo Player's controls.

alpha in combination with the parameter tone defines the color of the controls in the video player. It defines the intensity of the color to use. The admissible values for this parameter are integers between 0 and 100.

The variable load includes the URL of the video, or of the playlist, to be shown in the TSVideo Player. This URL must be relative to the webpage where the player is inserted or must be a global URL (http://...).