Bring some Silverlight on your website
Composite.Media.SilverLightPlayer allows you to embed and play Silverlight files on web pages.
Microsoft Silverlight is a development platform for creating and running Web, desktop and mobile applications.
How to Use Composite.Media.SilverLightPlayer
- Install the package.
- Place Silverlight files (
.xap) in one of the public folders on your website (e.g./Frontendor its own/Silverlight). - Edit a page.
- Insert the
Composite.Media.SilverLightPlayer function (
Insert |
Function) or add the code:
<f:function name="Composite.Media.SilverlightPlayer" xmlns:f="http://www.composite.net/ns/function/1.0"> <f:param name="Source" value="/Silverlight/file.xap" /> <f:param name="Width" value="700" /> <f:param name="Height" value="300" /> <f:param name="ClientId" value="Player1" /> </f:function>
- Set its required parameters:
- Source: The relative path to the Silverlight file on the website to embed (e.g. "/Silverlight/file.xap")
- Width: The width of the player (e.g. "700")
- Height: The height of the player (e.g. "300")
- Set its optional parameter if necessary:
- ClientId: The ID of the embedded object to refer to from code (will be added to the
<object/>element in itsidattribute)
- ClientId: The ID of the embedded object to refer to from code (will be added to the
Requirements
Composite C1 version 2.1 or later