How To Embed The Progressive Download Player




Step 1: Download Progressive Download HTML template from CodePlex
EmbedProgressiveDownloadPlayer_image1.png


Step 2: Unzip Template
EmbedProgressiveDownloadPlayer_image2.png


Step 3: Copy ProgressiveDownloadPlayer.xap to the folder that contains your HTML document

Step 4: Add the following object tag to your HTML page
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ProgressiveDownloadPlayer.xap"/>
<param name="minRuntimeVersion" value="4.0.50401.0"/>
<param name="autoUpgrade" value="true"/>
</object>

Step 4: Setup the player using InitParams
<param name="InitParams" value="mediaurl=http://smf.vertigo.com/videos/wildlife.wmv "/>


Example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Progressive Download Player</title>
</head>
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ProgressiveDownloadPlayer.xap"/>
<param name="minRuntimeVersion" value="4.0.50401.0"/>
<param name="autoUpgrade" value="true"/>
<param name="InitParams" value="mediaurl=http://smf.vertigo.com/videos/wildlife.wmv"/>
</object>
</form>
</body>
</html>

Last edited Sep 15, 2010 at 10:11 PM by krohling, version 10

Comments

sukola Dec 9, 2011 at 2:34 AM 
That was too easy! Thank you for all of your support.