MediaPlaybackSession.PositionChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the current playback position within the currently playing media changes.
// 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)
Event Type
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin