Share via


MediaPlayer Members

Include Protected Members
Include Inherited Members

Provides a player that runs media (video or audio) using Silverlight in an ASP.NET Web page.

The MediaPlayer type exposes the following members.

Constructors

  Name Description
Public method MediaPlayer Initializes a new instance of the MediaPlayer class.

Top

Methods

  Name Description
Protected method AddAttributesToRender Adds HTML attributes and styles to render by using the specified HtmlTextWriter instance. This method is primarily used by control developers. (Inherited from Silverlight.)
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject (Inherited from Control.)
Public method ApplyStyle (Inherited from WebControl.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Protected method BuildProfileTree (Inherited from Control.)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Public method CopyBaseAttributes (Inherited from WebControl.)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from Control.)
Protected method CreateControlStyle (Inherited from WebControl.)
Public method DataBind Overloaded.
Protected method DataBindChildren (Inherited from Control.)
Public method Dispose (Inherited from Control.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method FindControl Overloaded.
Public method Focus (Inherited from Control.)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetScriptDescriptors Retrieves properties from a MediaPlayer object that are passed to the Sys.UI.Silverlight.MediaPlayer client component that implements media player logic in the browser. (Overrides Silverlight.GetScriptDescriptors().)
Protected method GetScriptReferences Retrieves the client script for the Sys.UI.Silverlight.MediaPlayer client control. (Overrides Silverlight.GetScriptReferences().)
Protected method GetSilverlightParameters Provides values for Silverlight plug-in settings. (Inherited from Silverlight.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState (Inherited from Control.)
Protected method LoadViewState Restores view-state information from a previous page request that was saved by the SaveViewState method. (Overrides WebControlLoadViewState(Object).)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MergeStyle (Inherited from WebControl.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnInit (Inherited from Control.)
Protected method OnLoad (Inherited from Control.)
Protected method OnPreRender Raises the WebControl.PreRender event. (Inherited from Silverlight.)
Protected method OnUnload (Inherited from Control.)
Protected method OpenFile (Inherited from Control.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Protected method RemovedControl (Inherited from Control.)
Protected method Render Sends server control content to the specified HtmlTextWriter object, which writes the content to be rendered to the client. (Inherited from Silverlight.)
Public method RenderBeginTag (Inherited from WebControl.)
Protected method RenderChildren (Inherited from Control.)
Protected method RenderContents Renders the contents of the control to the specified HtmlTextWriter writer. This method is primarily used by control developers. (Inherited from Silverlight.)
Public method RenderControl Overloaded.
Public method RenderEndTag (Inherited from WebControl.)
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Protected method SaveControlState (Inherited from Control.)
Protected method SaveViewState Saves the view-state changes that have occurred since the time the page was posted back to the server. (Overrides WebControlSaveViewState().)
Protected method SetDesignModeState (Inherited from Control.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Protected method TrackViewState Tracks view-state changes to the StateBag object for the MediaPlayer control. (Overrides WebControlTrackViewState().)

Top

Properties

  Name Description
Public property AccessKey (Inherited from WebControl.)
Protected property Adapter (Inherited from Control.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property Attributes (Inherited from WebControl.)
Public property AutoLoad Gets or sets a value that indicates whether the media file is automatically loaded when the MediaPlayer control is rendered.
Public property AutoPlay Gets or sets a value that indicates whether the media file starts to play immediately after it is opened.
Public property AutoUpgrade Gets or sets a value indicating whether the Silverlight plug-in should automatically be upgraded. (Inherited from Silverlight.)
Public property BackColor (Inherited from WebControl.)
Public property BindingContainer (Inherited from Control.)
Public property BorderColor (Inherited from WebControl.)
Public property BorderStyle (Inherited from WebControl.)
Public property BorderWidth (Inherited from WebControl.)
Public property Chapters Gets the list of chapters in the media file.
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Protected property Context (Inherited from Control.)
Public property Controls (Inherited from Control.)
Public property ControlStyle (Inherited from WebControl.)
Public property ControlStyleCreated (Inherited from WebControl.)
Public property CssClass (Inherited from WebControl.)
Protected property DefaultScriptType Gets a reference to the client type that is created by default if the Silverlight.ScriptType property is not specified. (Overrides Silverlight.DefaultScriptType.)
Protected property DesignMode (Inherited from Control.)
Public property EnableCaptions Gets or sets a value that indicates whether to enable closed captioning.
Public property Enabled (Inherited from WebControl.)
Public property EnableFrameRateCounter Gets or sets a value that determines whether to display the current frame rate in the hosting browser's status bar. (Inherited from Silverlight.)
Public property EnableRedrawRegions Gets or sets a value that indicates whether to show the areas of the Silverlight plug-in that are being redrawn for each frame. (Inherited from Silverlight.)
Public property EnableTheming (Inherited from WebControl.)
Public property EnableViewState (Inherited from Control.)
Protected property Events (Inherited from Control.)
Public property Font (Inherited from WebControl.)
Public property ForeColor (Inherited from WebControl.)
Public property HasAttributes (Inherited from WebControl.)
Protected property HasChildViewState (Inherited from Control.)
Public property Height (Inherited from WebControl.)
Public property HtmlAccess Gets or sets whether to allow the Silverlight-based application to access the HTML page Document Object Model (DOM). (Inherited from Silverlight.)
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Public property InitParameters Gets or sets an optional set of user-defined initialization parameters. (Inherited from Silverlight.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Protected property IsEnabled (Inherited from WebControl.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Protected property LoadViewStateByID (Inherited from Control.)
Public property MaxFrameRate Gets or sets the maximum number of frames to render per second for the Silverlight document. (Inherited from Silverlight.)
Public property MediaDefinition Gets or sets the path of the media definition file.
Public property MediaSkinSource Gets or sets a value that identifies the skin used for the MediaPlayer control.
Public property MediaSource Gets or sets the media file for the MediaPlayer.
Public property MinimumVersion Gets or sets the minimum Silverlight plug-in host version that is required for this Silverlight-based application. (Inherited from Silverlight.)
Public property Muted Gets or sets a value that indicates whether audio should be muted in the player by default.
Public property NamingContainer (Inherited from Control.)
Public property OnClientChapterSelected Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.chapterSelected client event is raised.
Public property OnClientChapterStarted Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.chapterStarted client event is raised.
Public property OnClientCurrentStateChanged Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.currentStateChanged client event is raised.
Public property OnClientMarkerReached Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.markerReached event occurs.
Public property OnClientMediaEnded Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.mediaEnded client event occurs.
Public property OnClientMediaFailed Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.mediaFailed client event is raised.
Public property OnClientMediaOpened Gets or sets the name of the client JavaScript function (event handler) that is called when the Sys.UI.Silverlight.MediaPlayer.mediaOpened event occurs.
Public property OnClientVolumeChanged Gets or sets the name of the client JavaScript function (event handler) that is called when the volume is modified.
Public property OnPluginError Gets or sets the name of the client JavaScript function (event handler) that is called if a run-time error occurs with the Silverlight plug-in. (Inherited from Silverlight.)
Public property OnPluginFullScreenChanged Gets or sets the name of the client JavaScript function (event handler) that is called when full-screen mode is toggled. (Inherited from Silverlight.)
Public property OnPluginLoaded Gets or sets the name of the client JavaScript function (event handler) that is called when the Silverlight plug-in is loaded. (Inherited from Silverlight.)
Public property OnPluginResized Gets or sets the name of the client JavaScript function (event handler) that is called when the Silverlight plug-in is resized. (Inherited from Silverlight.)
Public property OnPluginSourceDownloadComplete Gets or sets the name of the client JavaScript function (event handler) that is called when the plug-in source has been downloaded. (Inherited from Silverlight.)
Public property OnPluginSourceDownloadProgressChanged Gets or sets the name of the client JavaScript function (event handler) that is called when the plug-in source download progress changes. (Inherited from Silverlight.)
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property PlaceholderSource Gets or sets a placeholder to display when the media file is being opened.
Public property PluginBackground Gets or sets the color of the Silverlight plug-in background. (Inherited from Silverlight.)
Public property PluginNotInstalledTemplate Specifies the HTML markup to render in the browser if the Silverlight plug-in is not installed. (Inherited from Silverlight.)
Public property ScaleMode Gets or sets the display mode. (Overrides Silverlight.ScaleMode.)
Public property ScriptType Gets or sets the type name of the client JavaScript object to create and to associate with the Silverlight plug-in. (Inherited from Silverlight.)
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from WebControl.)
Public property Source Gets or sets the source file that is used as the media skin. (Overrides Silverlight.Source.)
Public property SplashScreenSource Gets or sets the URL of the splash screen document to render when the Silverlight content is loading. (Inherited from Silverlight.)
Public property Style (Inherited from WebControl.)
Public property TabIndex (Inherited from WebControl.)
Protected property TagKey (Inherited from WebControl.)
Protected property TagName (Inherited from WebControl.)
Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public property ToolTip (Inherited from WebControl.)
Public property UniqueID (Inherited from Control.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property Visible (Inherited from Control.)
Public property Volume Gets or sets the initial volume setting as a value between 0 and 1.
Public property Width (Inherited from WebControl.)
Public property Windowless Gets (or sets in initialization only) a value that specifies whether the Silverlight plug-in displays as a windowless plug-in. (Applies to Windows versions of Silverlight only.) (Inherited from Silverlight.)

Top

Events

  Name Description
Public event DataBinding (Inherited from Control.)
Public event Disposed (Inherited from Control.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event Unload (Inherited from Control.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IScriptControlGetScriptDescriptors (Inherited from Silverlight.)
Explicit interface implemetationPrivate method IScriptControlGetScriptReferences (Inherited from Silverlight.)
Explicit interface implemetationPrivate method System#Web#UI#IParserAccessor#AddParsedSubObject (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IControlBuilderAccessor#ControlBuilder (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IDataBindingsAccessor#DataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IExpressionsAccessor#Expressions (Inherited from Control.)
Explicit interface implemetationPrivate method System#Web#UI#IAttributeAccessor#GetAttribute (Inherited from WebControl.)
Explicit interface implemetationPrivate method System#Web#UI#IControlDesignerAccessor#GetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IDataBindingsAccessor#HasDataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IExpressionsAccessor#HasExpressions (Inherited from Control.)
Explicit interface implemetationPrivate method System#Web#UI#IAttributeAccessor#SetAttribute (Inherited from WebControl.)
Explicit interface implemetationPrivate method System#Web#UI#IControlDesignerAccessor#SetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate method System#Web#UI#IControlDesignerAccessor#SetOwnerControl (Inherited from Control.)
Explicit interface implemetationPrivate property System#Web#UI#IControlDesignerAccessor#UserData (Inherited from Control.)

Top

See Also

Reference

MediaPlayer Class

System.Web.UI.SilverlightControls Namespace