MediaPlaybackSession.PlayedRangesChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the set of time ranges that have been played changes.
// Register
event_token PlayedRangesChanged(TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
// Revoke with event_token
void PlayedRangesChanged(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackSession::PlayedRangesChanged_revoker PlayedRangesChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackSession,object> PlayedRangesChanged;
function onPlayedRangesChanged(eventArgs) { /* Your code */ }
mediaPlaybackSession.addEventListener("playedrangeschanged", onPlayedRangesChanged);
mediaPlaybackSession.removeEventListener("playedrangeschanged", onPlayedRangesChanged);
- or -
mediaPlaybackSession.onplayedrangeschanged = onPlayedRangesChanged;
Public Custom Event PlayedRangesChanged 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 GetPlayedRanges.