MediaElementState Enum

Definition

Defines the potential states of a MediaElement object.

public enum class MediaElementState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MediaElementState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaElementState
Public Enum MediaElementState
<object property="enumMemberName"/>
Inheritance
MediaElementState
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Closed 0

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

Opening 1

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

Buffering 2

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.

Playing 3

The MediaElement is playing the current media source.

Paused 4

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

Stopped 5

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.

Applies to

See also