Dela via


SystemMediaTransportControls.PlaybackPositionChangeRequested Event

Definition

Occurs when the user modifies the playback position of the SystemMediaTransportControls.

// Register
event_token PlaybackPositionChangeRequested(TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SystemMediaTransportControls::PlaybackPositionChangeRequested_revoker PlaybackPositionChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,PlaybackPositionChangeRequestedEventArgs> PlaybackPositionChangeRequested;
function onPlaybackPositionChangeRequested(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);
systemMediaTransportControls.removeEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);
- or -
systemMediaTransportControls.onplaybackpositionchangerequested = onPlaybackPositionChangeRequested;
Public Custom Event PlaybackPositionChangeRequested As TypedEventHandler(Of SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs) 

Event Type

Remarks

Registering for this event causes an app to be notified when the SystemMediaTransportControls playback position changes. An app can change its auto-repeat behavior based on the request or ignore the request and update the SystemMediaTransportControls by populating a SystemMediaTransportControlsTimelineProperties object with values indicating the actual playback position and calling SystemMediaTransportControls.UpdateTimelineProperties.

Applies to