MediaSourceState Enum

Definition

Specifies the state of a MediaSource.

public enum class MediaSourceState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
enum class MediaSourceState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public enum MediaSourceState
var value = Windows.Media.Core.MediaSourceState.initial
Public Enum MediaSourceState
Inheritance
MediaSourceState
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Fields

Name Value Description
Initial 0

The MediaSource has been initialized.

Opening 1

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

Opened 2

The MediaSource has successfully opened the associated media content.

Failed 3

The MediaSource failed to open the associated media content.

Closed 4

The MediaSource has been closed.

Applies to