MediaElementState Enum

Definition

Defines the potential states of a MediaElement object.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaElementState
XAML
<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

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also