Export (0) Print
Expand All
Expand Minimize

MediaElementState Enumeration

Silverlight

Defines the potential states of a MediaElement object.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public enum MediaElementState
<object property="enumMemberName"/>

Member nameDescription
Supported by Silverlight for Windows PhoneClosedThe MediaElement contains no media. The MediaElement displays a transparent frame.
Supported by Silverlight for Windows PhoneOpeningThe MediaElement is validating and attempting to open the Uniform Resource Identifier (URI) specified by its Source property. While in this state, the MediaElement queues any Play, Pause, or Stop commands it receives and processes them if the media is successfully opened.
Supported by Silverlight for Windows PhoneIndividualizingThe MediaElement is in the process of ensuring that proper individualization components (only applicable when playing DRM protected content) are installed on the user's computer. See Digital Rights Management (DRM) for more information.
Supported by Silverlight for Windows PhoneAcquiringLicenseThe MediaElement is acquiring a license required to play DRM protected content. Once OnAcquireLicense has been called, the MediaElement will remain in this state until SetLicenseResponse has been called.
Supported by Silverlight for Windows PhoneBufferingThe MediaElement is loading the media for playback. Its Position does not advance during this state. If the MediaElement was already playing video, it continues to display the last displayed frame.
Supported by Silverlight for Windows PhonePlayingThe MediaElement is playing the media specified by its source property. Its Position advances forward.
Supported by Silverlight for Windows PhonePausedThe MediaElement does not advance its Position. If the MediaElement was playing video, it continues to display the current frame.
Supported by Silverlight for Windows PhoneStoppedThe MediaElement contains media but is not playing or paused. Its Position is 0 and does not advance. If the loaded media is video, the MediaElement displays the first frame.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft