SystemMediaTransportControls.PlaybackPositionChangeRequested 事件

定义

当用户修改 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) 

事件类型

注解

注册此事件会导致 在 SystemMediaTransportControls 播放位置更改时通知应用。 应用可以根据请求更改其自动重复行为,也可以忽略请求,并通过使用指示实际播放位置的值填充 SystemMediaTransportControlsTimelineProperties 对象并调用 SystemMediaTransportControls.UpdateTimelineProperties 来更新 SystemMediaTransportControls

适用于