Share via


MediaStreamSourceClosedReason Enum

Definition

Specifies the reason why a MediaStreamSource was closed.

public enum class MediaStreamSourceClosedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MediaStreamSourceClosedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaStreamSourceClosedReason
var value = Windows.Media.Core.MediaStreamSourceClosedReason.done
Public Enum MediaStreamSourceClosedReason
Inheritance
MediaStreamSourceClosedReason
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
Done 0

No error has occurred.

UnknownError 1

An unspecified error has occurred.

AppReportedError 2

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

UnsupportedProtectionSystem 3

Components needed to implement the protection system are missing.

ProtectionSystemFailure 4

A failure occurred while initializing the protection system

UnsupportedEncodingFormat 5

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

MissingSampleRequestedEventHandler 6

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

Applies to