مشاركة عبر


SystemMediaTransportControls.PlaybackRateChangeRequested Event

Definition

Occurs when the user modifies the SystemMediaTransportControls playback rate.

// 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) 

Event Type

Remarks

Registering for this event causes an app to be notified when the SystemMediaTransportControls playback rate changes. An app can change its playback rate based on the request or ignore the request and update the SystemMediaTransportControls by setting the PlaybackRate property to a value that reflects the app's actual playback rate.

Applies to