共用方式為


SystemMediaTransportControls.PlaybackRateChangeRequested 事件

定義

當使用者修改 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 播放速率變更時收到通知。 應用程式可以根據要求變更播放速率,或忽略要求並更新 SystemMediaTransportControls ,方法是將 PlaybackRate 屬性設定為反映應用程式實際播放速率的值。

適用於