Share via


MiracastReceiverDisconnectReason Enum

Definition

Specifies the reason why the app decided to disconnect the Miracast connection.

public enum class MiracastReceiverDisconnectReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class MiracastReceiverDisconnectReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum MiracastReceiverDisconnectReason
var value = Windows.Media.Miracast.MiracastReceiverDisconnectReason.finished
Public Enum MiracastReceiverDisconnectReason
Inheritance
MiracastReceiverDisconnectReason
Attributes

Windows requirements

Requirements Description
Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Fields

Name Value Description
Finished 0

The stream ended without error.

AppSpecificError 1

An error occurred in the app.

ConnectionNotAccepted 2

The user refused the Miracast connection.

DisconnectedByUser 3

The user requested to stop streaming.

FailedToStartStreaming 4

The app was unable to start streaming, for example, a connection error.

MediaDecodingError 5

Streaming failed due to an error in decoding the audio or video data.

MediaStreamingError 6

The app encountered an error while streaming was in progress. The error was not related to decoding or decrypting of the data.

MediaDecryptionError 7

Streaming failed due to an error related to decrypting of the audio or video data.

Applies to