Sys.UI.Silverlight.MediaPlayer

Provides the client base type for the MediaPlayer server control.

Namespace: Sys.UI.Silverlight

Inherits: Sys.UI.Silverlight.Control

Syntax

Sys.UI.Silverlight.MediaPlayer(domElement) = function()

Usage

var a = new Sys.UI.Silverlight.MediaPlayer(domElement);

Public Constructors

Name

Description

MediaPlayer Constructor

Initializes a new instance of the MediaPlayer class.

Members

Member

Description

autoLoad Property

Gets or sets a value that indicates whether the media loads immediately after the MediaPlayer is loaded.

autoPlay Property

Gets or sets a value that indicates whether the media plays immediately after the media file is opened.

caption Property

Gets or sets the current caption string.

chapters Property

Gets or sets the chapter array.

currentChapter Property

Gets or sets the current media chapter.

currentState Property

Gets the current state of the media.

enableCaptions Property

Gets or sets a value that indicates whether captions that are embedded in the media should be displayed.

mediaElement Property

Gets the Silverlight MediaElement associated with the Media Player.

mediaSource Property

Gets or sets the current media source.

muted Property

Gets or sets a value that indicates whether the media should be muted.

placeholderSource Property

Gets or sets the placeholder image that is displayed before the media can play.

position Property

Gets or sets the current media position in seconds.

volume Property

Gets or sets the volume of the media file that is playing.

onChapterSelected Method

Called when the user navigates to a chapter point.

onChapterStarted Method

Called when a chapter starts in the media being played.

onCurrentStateChanged Method

Called when the state of the currently opened media changes.

onMarkerReached Method

Called when a marker embedded in the media file has been reached.

onMediaEnded Method

Called when the media reaches the end.

onMediaFailed Method

Called when the media does not open.

onMediaOpened Method

Called when the media successfully opens.

onPluginFullScreenChanged Method

Called when full screen mode is toggled.

onPluginLoaded Method

Called when the plug-in has loaded the specified source.

onVolumeChanged Method

Called when the volume level changes.

pause Method

Pauses the currently playing media.

play Method

Starts playing the current media file from its current position in the media.

pluginDispose Method

Called on disposal when the plug-in has been previously loaded.

stop Method

Stops playing the current media.

chapterSelected Event

Occurs when the user navigates to a chapter.

chapterStarted Event

Occurs when a chapter starts in the media being played.

currentStateChanged Event

Occurs when the state of the currently playing media changes.

markerReached Event

Occurs when a marker embedded in the media file has been reached.

mediaEnded Event

Occurs when the media reaches the end.

mediaFailed Event

Occurs when media fails to open.

mediaOpened Event

Occurs when media successfully opens.

volumeChanged Event

Occurs when the volume level changes.

Remarks

This topic is ASP.NET Extensions documentation and is unsupported by Microsoft. Blank topics are included as placeholders and existing content is subject to change in future releases.