Home ›
DashPlayer Standalone Guide
You can embed the Dash Player much like you can any other player... using the <object> tag. Below you will find an example of how you can embed the Dash Player in your website.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="420" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="dashPlayer.swf" />
<param name="wmode" value="transparent" />
<param name="allowfullscreen" value="true" />
<param name="FlashVars" value="file=http://images.apple.com/movies/us/hd_gallery/gl1800/nasa_shuttle-r_m720p.mov" />
<param name="quality" value="high" />
<embed allowScriptAccess="always" src="dashPlayer.swf" width="640" height="420" border="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowfullscreen="true" quality="high" flashvars="file=http://images.apple.com/movies/us/hd_gallery/gl1800/nasa_shuttle-r_m720p.mov" />
</object>If you copy and paste this code into your HTML, and then open it up into a browser, you will notice that it brings up a NASA video. The player is basically told to play this video using a variable passed to the player called a "FlashVar"... These can be found in the code below where it says
<param name="FlashVars" value="file=...." />. The Dash Players functionality and behavior is governed through the use of Flash Variables. In order to use these variables to change the behavior of the player, you must provide each of these arguments in the "flashvar" parameter when you embed the player in your page (see code below). To do this, you need to add these parameters in the HTML object code that you use to embed the player. The following HTML is a reference on how you can achieve the same result from above using just HTML.<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="dashPlayer.swf" />
<param name="wmode" value="window" />
<param name="allowfullscreen" value="true" />
<param name="FlashVars" value="config=videos&playlist=my_videos&arg=comedy&autostart=false" />
<param name="quality" value="high" />
<embed allowScriptAccess="always" src="dashPlayer.swf" width="640" height="480" border="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="window" allowfullscreen="true" quality="high" flashvars="config=videos&playlist=my_videos&arg=comedy&autostart=false" />
</object>


