Compartilhar via


MediaPlaybackSession.NaturalDurationChanged Evento

Definição

Ocorre quando a duração do item de mídia que está sendo reproduzido no momento é alterada.

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

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

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

Tipo de evento

Aplica-se a