Share via


MediaPlaybackSessionBufferingStartedEventArgs.IsPlaybackInterruption Property

Definition

Gets a value indicating whether the buffering that triggered the event was expected by the system, such as when a new item begins playing or after the user seeks to a new position in the media item, or if it was an unexpected interruption, such as when buffering is caused by degradation of the network connection.

public:
 property bool IsPlaybackInterruption { bool get(); };
bool IsPlaybackInterruption();
public bool IsPlaybackInterruption { get; }
var boolean = mediaPlaybackSessionBufferingStartedEventArgs.isPlaybackInterruption;
Public ReadOnly Property IsPlaybackInterruption As Boolean

Property Value

Boolean

bool

True if the buffering represents an unexpected playback interruption. False if the buffering was an expected result of normal playback operations.

Remarks

Media playback apps that implement a custom UI typically update their UI when buffering occurs to inform the user. Checking the value of this property allows you to choose to only display buffering UI for unexpected buffering interruptions.

To maintain backwards compatibility, the BufferingStarted delegate signature receives the event args as a generic object. To get an instance of this class, use the as operator keyword (C#) or dynamic_cast (C++) to cast the args parameter to a MediaPlaybackSessionBufferingStartedEventArgs.

Applies to