HolisticWare Silverlight Player
Created by HolisticWare
How to implement Silverlight Player
- Edit a page.
- Add the Contribution.HolisticWare.SilverlightPlayer function ( Insert > Function) or insert the following code on the page:
Expand code - Set these required parameters:
- SourceXAP:The address or relative path of either an initial XAML file or XAP (URI) (e.g. "/ClientBin/my.xap")
- Width: The width of the player (e.g. "800")
- Height: The width of the player (e.g. "300")
- If needed, set one or more optional parameters that configure the embedded Silverlight object:
- IdDivSilverlightControlHost: The DOM ID of the div tag holding a Silverlight object ("silverlightControlHost" by default)
- IdObjectSilverlightControlHost: The DOM ID of the Silverlight object("objectSilverlightControlHost" by default)
- Data: The data attribute and its value recommended to avoid performance issues on some browsers ("data:application/x-silverlight-2," by default). Note the trailing comma in the data value, which indicates a second data parameter that has an empty value.
- Type: The type attribute required ("application/x-silverlight-2" by default)
- JSErrorHandler: Error handler for parse and native code run-time errors [JavaScript function name] ("onSilverlightError" by default)
- Background: The plug-in background color. The color can be with or without alpha (RGB, ScRGB)] ("transparent" (null, white) by default)
- RuntimeMin: The minimum version of the Silverlight plug-in required - in string format ("2.0.40115" by default)
- UpgradeAutomatic: When "true", the plug-in should attempt to upgrade if the minimum runtime version ("RuntimeMin") is greater than the current Silverlight version ("true" by default)
- AllowHtmlPopupWindow: When "true", the HtmlPage.PopupWindow method is allowed ("true" by default - for applications in the same domain)
- EnableHTMLAccess: When "true", the plug-in has full access to the browser DOM ("true" by default - for applications in the same domain)
- InitParams: A user-defined string of parameters - a string or a comma separated string (SL 1.0), comma separated key=value pairs (SL 2) (e.g. "dummy=workaround_for_SL4_Bug_change this!!!")
- MaxFrameRate: The maximum number of frames per second that the plug-in can render ("60" by default)
- JSOnFullScreenChanged: The function (a JavaScript function name) to call when the FullScreen property changes ("onFullScreenChanged" by default)
- JSOnLoad: The function (a JavaScript function name) to call when the plug-in has finished loading in the DOM ("onLoad" by default)
- JSOnResize: The function (a JavaScript function name) to call when the plug-in size changes ("onResize" by default)
- JSOnSourceDownloadComplete: The function (a JavaScript function name) to call when the source download has completed ("onSourceDownloadComplete" by default)
- JSOnSourceDownloadProgressChanged: The function (a JavaScript function name) to call when the source download progress changes ("onSourceDownloadProgressChanged" by default)
- SplashScreenSource: A XAML page to use as the splash screen (URI) (e.g. "/ClientBin/Logo.xaml")
- Windowless: The rendering mode for the plug-in for Windows versions of Silverlight. When "true", it is windowless ("false" by default).