Dela via


AdaptiveMediaSourceDownloadBitrateChangedReason Enum

Definition

Specifies the reason that the download bitrate changed. This value is used for the AdaptiveMediaSource.DownloadBitrateChanged event.

public enum class AdaptiveMediaSourceDownloadBitrateChangedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class AdaptiveMediaSourceDownloadBitrateChangedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum AdaptiveMediaSourceDownloadBitrateChangedReason
var value = Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadBitrateChangedReason.sufficientInboundBitsPerSecond
Public Enum AdaptiveMediaSourceDownloadBitrateChangedReason
Inheritance
AdaptiveMediaSourceDownloadBitrateChangedReason
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Fields

Name Value Description
SufficientInboundBitsPerSecond 0

The estimated InboundBitsPerSecond was large enough to allow switching to a higher bitrate.

InsufficientInboundBitsPerSecond 1

The estimated InboundBitsPerSecond dropped, which required switching to a lower bitrate to avoid stalls in playback.

LowBufferLevel 2

The amount of data buffered ahead of the playback position dropped enough that a change in download bitrate was required in order to avoid stalling playback while rebuffering.

PositionChanged 3

The bitrate changed as a result of seeking to a new position.  The system may switch to a lower bitrate temporarily in order to refill the buffer and resume playback faster.

TrackSelectionChanged 4

The bitrate changed as a result of a track selection change.  The system may switch to a lower bitrate temporarily in order to refill the buffer for the new track and resume playback faster.

DesiredBitratesChanged 5

The bitrate changed as a result of the app changing one of the properties on the AdaptiveMediaSource such as the DesiredMinBitrate, DesiredMaxBitrate, or InitialBitrate.

ErrorInPreviousBitrate 6

The bitrate changed as a result of an error occurring with the previously selected bitrate.  If there is a missing resource, or corruption is detected, or a download times out, the system may switch to a different bitrate in order to fill the buffer at the current download position to avoid gaps in playback. The conditions that caused an error in the previous bitrate will also generate other events that can be observed, such as DownloadFailed or the AdaptiveMediaSourceDiagnostics.DiagnosticAvailable event.

Applies to