This project is read-only.

Installation Instructions

This is a helper part of the project to help you implement the SL2 Video Player.
  • Obtain the VideoPlayer.xap file from the Releases tab above.
  • There are 2 versions of the player. If all you want is the smallest payload with basic playback functionality (no markers/closed-captioning), get the VideoPlayerM.xap version
  • Put the VideoPlayer.xap file into your web application. If you want to follow standard Silverlight protocol, you'd create a folder at the root of your web site called ClientBin and put it there.
  • Implement the Silverlight application in your page(s).
    • If you are using HTML, here is a sample piece of markup to demonstrate. Please refer to the Silverlight documentation for complete specification of the Silverlight plugin.
<div id="silverlightControlHost">
	<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480">
		<param name="source" value="ClientBin/VideoPlayer.xap"/>
		<param name="background" value="white" />
		<param name="initParams" value="m=Bear.wmv" />
               <param name="minruntimeversion" value="2.0.31005.0" />
		<a href="" style="text-decoration: none;">
 			<img src="" alt="Get Microsoft Silverlight" style="border-style: none"/>
  • If you are using ASP.NET and the asp:Silverlight control your implementation would look like this:
<div  style="height:100%;">
            <asp:Silverlight ID="Xaml1" 
            Width="640" Height="480" InitParameters="m=Bear.wmv" />
  • Remember these are only sample implementation of the plugin using the application. You should consider adding error event handlers, etc. as specified by the Silverlight SDK documentation.
  • In each (HTML and ASP.NET) implementation, the initParams (or InitParameters if using the ASP.NET control). Various types of parameters are supported. The definitions of these parameters are specified in the Initialize Parameters page.
  • What if my users's don't have Silverlight installed? - this is a great question. See some tips on creating a 'Silverlight Not Installed' message to your users.

Last edited Dec 30, 2008 at 11:33 PM by timheuer, version 15


cakmak Nov 2, 2011 at 2:18 AM 
you said this plyer format is xap but if we have already xap lıke our main web site's xap so is it can be 2 xap in 1 wep projects pls ı need to know

dohkobakala May 12, 2011 at 2:09 AM 
Does any one knows how to "autoplay" this Video player?

dohkobakala May 12, 2011 at 2:08 AM 
@futurefiles I´m using Jquery for write the object and JCarousel to show video thumbnails and i send the new video dynamically through Jquery functions

vizion88 Mar 2, 2010 at 2:07 PM 
Does the HTML sample only work when you provide a width and height to the object? I want it to be done automatically :(

xusan Feb 5, 2010 at 5:38 AM 
does it support trailer if so how can i make to display i.e. what format of initparam data i should pass. thanks in advance

JimLiu Feb 2, 2010 at 5:00 PM 
futurefiles, you can use Literal to include querystring into InitParameters.

futurefiles Jul 9, 2009 at 4:51 PM 
Is there a way to pull InitParameters="m=Bear.wmv" from a request.querystring to dynamically load different videos?

rmaciel Jun 6, 2009 at 2:18 PM 
mangesh, you can use a converter like the free Prism video converter at

mangesh Jan 16, 2009 at 5:01 AM 
Does it only supports "WMV" videos ? I tried with "AVI", "FLV" but it couldnt play the file. Any help ?