Freigeben über


MediaPlaybackSession.PositionChanged Ereignis

Definition

Tritt auf, wenn sich die aktuelle Wiedergabeposition innerhalb der aktuell wiedergegebenen Medien ändert.

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

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

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

Ereignistyp

Gilt für: