Share via


MediaPlaybackSession.BufferedRangesChanged Event

Definition

Occurs when the set of time ranges for which data is buffered changes.

// Register
event_token BufferedRangesChanged(TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;

// Revoke with event_token
void BufferedRangesChanged(event_token const* cookie) const;

// Revoke with event_revoker
MediaPlaybackSession::BufferedRangesChanged_revoker BufferedRangesChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackSession,object> BufferedRangesChanged;
function onBufferedRangesChanged(eventArgs) { /* Your code */ }
mediaPlaybackSession.addEventListener("bufferedrangeschanged", onBufferedRangesChanged);
mediaPlaybackSession.removeEventListener("bufferedrangeschanged", onBufferedRangesChanged);
- or -
mediaPlaybackSession.onbufferedrangeschanged = onBufferedRangesChanged;
Public Custom Event BufferedRangesChanged As TypedEventHandler(Of MediaPlaybackSession, Object) 

Event Type

Windows requirements

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

Remarks

Get the current set of buffered time ranges by calling GetBufferedRanges.

Applies to