Delen via


MediaPlaybackSessionOutputDegradationPolicyState Class

Definition

Expresses the current output degradation policy state of a MediaPlaybackSession.

public ref class MediaPlaybackSessionOutputDegradationPolicyState sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaPlaybackSessionOutputDegradationPolicyState final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaPlaybackSessionOutputDegradationPolicyState
Public NotInheritable Class MediaPlaybackSessionOutputDegradationPolicyState
Inheritance
Object Platform::Object IInspectable MediaPlaybackSessionOutputDegradationPolicyState
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Get an instance of this class by calling MediaPlaybackSession.GetOutputDegradationPolicyState.

In some circumstances the system may degrade the playback of a media item, such as reducing the resolution (constriction), based on a policy rather than a performance issue. The object retrieved with this property allows you to determine if and why this policy-based degredation is occurring for telemetry purposes.

Properties

VideoConstrictionReason

Gets a value from the MediaPlaybackSessionVideoConstrictionReason enumeration specifying the reason why video is being constricted, if known.

Applies to

See also