MediaElementState MediaElementState MediaElementState MediaElementState Enum


Defines the potential states of a MediaElement object.

public : enum class MediaElementState
enum class winrt::Windows::UI::Xaml::Media::MediaElementState : int32_t
public enum MediaElementState
Public Enum MediaElementState
<object property="enumMemberName"/>

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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

Closed Closed Closed Closed 0

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

Opening Opening Opening Opening 1

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

Paused Paused Paused Paused 4

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

Playing Playing Playing Playing 3

The MediaElement is playing the current media source.

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

See also