MediaSourceState MediaSourceState MediaSourceState MediaSourceState MediaSourceState Enum


Specifies the state of a MediaSource.

public : enum class MediaSourceState
enum class winrt::Windows::Media::Core::MediaSourceState : int32_t
public enum MediaSourceState
Public Enum MediaSourceState
var value = Windows.Media.Core.MediaSourceState.closed;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)


Closed Closed Closed Closed Closed 4

The MediaSource has been closed.

Failed Failed Failed Failed Failed 3

The MediaSource failed to open the associated media content.

Initial Initial Initial Initial Initial 0

The MediaSource has been initialized.

Opened Opened Opened Opened Opened 2

The MediaSource has successfully opened the associated media content.

Opening Opening Opening Opening Opening 1

The MediaSource is in the process of opening the associated media content.