Microsoft Silverlight neemt meer ruimte in beslag dan Adobe Flash Player. Geen ondersteuning voor Windows RT, Android en iOS. Ontwikkeling is in 2011 stopgezet ten voordele van HTML5. Moonlight heeft slechts ondersteuning tot Silverlight 3, waardoor applicaties voor Silverlight 4 en hoger vaak niet onder Linux werken. Locate and select Microsoft Silverlight. To install the latest version of the Silverlight plug-in: Navigate to Netflix.com and play any title. Follow the prompts to download and install Silverlight on your Windows PC. See our Netflix system requirements for HTML5 Player and Silverlight to make sure Silverlight is compatible with.
-->Plays a video using the Silverlight player.
Namespace:Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
Parameters
- path
Type: System.String
The URL that provides the path to a media file to play.
- width
Type: System.String
The width of the player in either pixels or as a percentage of the browser window.
- height
Type: System.String
The height of the player.
- bgColor
Type: System.String
(Optional) The background color of the Silverlight player.
- initParameters
Type: System.String
(Optional) A comma-delimited array that contains named values to pass to the Silverlight .xap file.
Silverlight X32 Bit Version
- minimumVersion
Type: System.String
(Optional) The minimum Silverlight plug-in host version that is required in order to play the specified media file.
- autoUpgrade
Type: System.Boolean
(Optional) A value that indicates whether the Silverlight plug-in should automatically be upgraded.
- options
Type: System.Object
(Optional) A comma-delimited array that contains named values to pass to the Silverlight HTML object.
- htmlAttributes
Type: System.Object
(Optional) A comma-delimited array that contains attribute names whose values are rendered as subelements of the object element in the Web page.
Return Value
Type: System.Web.WebPages.HelperResult
An object element represented in the rendered HTML as <object></object>.
Remarks
The Silverlight player of the Video class enables several file types to be played in a web page, including Windows Media videos (.wmv files), Windows Media audio (.wma files), MPEG-4 (.mp4), and MP3 (.mp3 files). The path parameter must be set to point to a Silverlight-based application package (.xap file). The width and height parameters must also be set. All other parameters are optional. If only the required parameters are set, the Silverlight player displays the video without a background color.
A Silverlight .xap file is a compressed file that contains layout instructions in a .xaml file, managed code in assemblies, and optional resources. A .xap file can be created in Visual Studio as a Silverlight application project. The initParameters parameter can be used to pass values from a Web page to the .xap file. The values in the initParameters parameter can be used to initialize your Silverlight application.
Examples
The following example shows how to use the Silverlight method to play a video.
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.
See Also
Reference
-->Plays a video using the Silverlight player.
Microsoft Silverlight Und Adobe Flash Player
Namespace:Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
Parameters
- path
Type: System.String
The URL that provides the path to a media file to play.
- width
Type: System.String
The width of the player in either pixels or as a percentage of the browser window.
- height
Type: System.String
The height of the player.
- bgColor
Type: System.String
(Optional) The background color of the Silverlight player.
Microsoft Silverlight Ou Adobe Flash Player
- initParameters
Type: System.String
(Optional) A comma-delimited array that contains named values to pass to the Silverlight .xap file.
- minimumVersion
Type: System.String
(Optional) The minimum Silverlight plug-in host version that is required in order to play the specified media file.
- autoUpgrade
Type: System.Boolean
(Optional) A value that indicates whether the Silverlight plug-in should automatically be upgraded.
- options
Type: System.Object
(Optional) A comma-delimited array that contains named values to pass to the Silverlight HTML object.
- htmlAttributes
Type: System.Object
(Optional) A comma-delimited array that contains attribute names whose values are rendered as subelements of the object element in the Web page.
Return Value
Type: System.Web.WebPages.HelperResult
An object element represented in the rendered HTML as <object></object>.
Microsoft Silverlight Player
Remarks
The Silverlight player of the Video class enables several file types to be played in a web page, including Windows Media videos (.wmv files), Windows Media audio (.wma files), MPEG-4 (.mp4), and MP3 (.mp3 files). The path parameter must be set to point to a Silverlight-based application package (.xap file). The width and height parameters must also be set. All other parameters are optional. If only the required parameters are set, the Silverlight player displays the video without a background color.
A Silverlight .xap file is a compressed file that contains layout instructions in a .xaml file, managed code in assemblies, and optional resources. A .xap file can be created in Visual Studio as a Silverlight application project. The initParameters parameter can be used to pass values from a Web page to the .xap file. The values in the initParameters parameter can be used to initialize your Silverlight application.
Examples
The following example shows how to use the Silverlight method to play a video.
Silverlight Video Player Download
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.