Share via


MediaPlaybackSession.PositionChanged イベント

定義

現在再生中のメディア内の現在の再生位置が変更されたときに発生します。

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

イベントの種類

適用対象