MediaPlaybackSession.PlayedRangesChanged Evento

Definizione

Si verifica quando il set di intervalli di tempo che sono stati riprodotti cambia.

// 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) 

Tipo evento

Requisiti Windows

Famiglia di dispositivi
Windows 10 Creators Update (è stato introdotto in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v4.0)

Commenti

Ottenere il set corrente di intervalli di tempo memorizzati nel buffer chiamando GetPlayedRanges.

Si applica a