MediaElementState enumeration

Applies to Windows and Windows Phone

Defines the potential states of a MediaElement object.

Syntax


public enum MediaElementState


<object property="enumMemberName"/>

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The MediaElementState enumeration has these members.

MemberValueDescription
Closed0

The MediaElement contains no media. The MediaElement displays a transparent frame.

Opening1

The MediaElement is validating and attempting to load the specified source.

Buffering2

The 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.

Playing3

The MediaElement is playing the current media source.

Paused4

The MediaElement does not advance its Position. If the MediaElement was playing video, it continues to display the current frame.

Stopped5

The 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

MediaElement.CurrentState

 

 

Show:
© 2014 Microsoft