SystemMediaTransportControls.PlaybackRateChangeRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户修改 SystemMediaTransportControls 播放速率时发生。
// Register
event_token PlaybackRateChangeRequested(TypedEventHandler<SystemMediaTransportControls, PlaybackRateChangeRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void PlaybackRateChangeRequested(event_token const* cookie) const;
// Revoke with event_revoker
SystemMediaTransportControls::PlaybackRateChangeRequested_revoker PlaybackRateChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, PlaybackRateChangeRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,PlaybackRateChangeRequestedEventArgs> PlaybackRateChangeRequested;
function onPlaybackRateChangeRequested(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("playbackratechangerequested", onPlaybackRateChangeRequested);
systemMediaTransportControls.removeEventListener("playbackratechangerequested", onPlaybackRateChangeRequested);
- or -
systemMediaTransportControls.onplaybackratechangerequested = onPlaybackRateChangeRequested;
Public Custom Event PlaybackRateChangeRequested As TypedEventHandler(Of SystemMediaTransportControls, PlaybackRateChangeRequestedEventArgs)
事件类型
注解
注册此事件会导致 当 SystemMediaTransportControls 播放速率更改时通知应用。 应用可以根据请求更改其播放速率,也可以忽略该请求,并通过将 PlaybackRate 属性设置为反映应用的实际播放速率的值来更新 SystemMediaTransportControls。