SystemMediaTransportControls.PlaybackPositionChangeRequested SystemMediaTransportControls.PlaybackPositionChangeRequested SystemMediaTransportControls.PlaybackPositionChangeRequested SystemMediaTransportControls.PlaybackPositionChangeRequested SystemMediaTransportControls.PlaybackPositionChangeRequested Event

Definition

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

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

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

// Revoke with event_revoker
PlaybackPositionChangeRequested_revoker PlaybackPositionChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs> PlaybackPositionChangeRequested
Public Event PlaybackPositionChangeRequested As TypedEventHandler (Of SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs)
function onPlaybackPositionChangeRequested(eventArgs){/* Your code */}


systemMediaTransportControls.addEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);
systemMediaTransportControls.removeEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);

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.