Compartilhar via


MediaPlaybackSession.PlayedRangesChanged Evento

Definição

Ocorre quando o conjunto de intervalos de tempo que foram reproduzidos é alterado.

// 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 de evento

Requisitos do Windows

Família de dispositivos
Windows 10 Creators Update (introduzida na 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v4.0)

Comentários

Obtenha o conjunto atual de intervalos de tempo armazenados em buffer chamando GetPlayedRanges.

Aplica-se a