Skip to main content
MediaStreamSourceClosedReason enumeration

Specifies the reason why a MediaStreamSource was closed.

Syntax


var value = Windows.Media.Core.MediaStreamSourceClosedReason.done;

public enum MediaStreamSourceClosedReason

Public Enum MediaStreamSourceClosedReason

public enum class MediaStreamSourceClosedReason

Members

The MediaStreamSourceClosedReason enumeration has these members.

MemberValueDescription
Done | done0

No error has occurred.

UnknownError | unknownError1

An unspecified error has occurred.

AppReportedError | appReportedError2

The app reported an error by calling the NotifyError method on the MediaStreamSource.

UnsupportedProtectionSystem | unsupportedProtectionSystem3

Components needed to implement the protection system are missing.

ProtectionSystemFailure | protectionSystemFailure4

A failure occurred while initializing the protection system

UnsupportedEncodingFormat | unsupportedEncodingFormat5

One or more media streams use an encoding format which cannot be handled by the media pipeline.

MissingSampleRequestedEventHandler | missingSampleRequestedEventHandler6

The MediaStreamSource object does not have an event handler for the SampleRequested event.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.winmd

Attributes

[ Version(0x06030000)]