Dela via


MediaPlaybackSession.SupportedPlaybackRatesChanged Event

Definition

Occurs when the set of playback rates supported by the media playback session changes.

// Register
event_token SupportedPlaybackRatesChanged(TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;

// Revoke with event_token
void SupportedPlaybackRatesChanged(event_token const* cookie) const;

// Revoke with event_revoker
MediaPlaybackSession::SupportedPlaybackRatesChanged_revoker SupportedPlaybackRatesChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackSession,object> SupportedPlaybackRatesChanged;
function onSupportedPlaybackRatesChanged(eventArgs) { /* Your code */ }
mediaPlaybackSession.addEventListener("supportedplaybackrateschanged", onSupportedPlaybackRatesChanged);
mediaPlaybackSession.removeEventListener("supportedplaybackrateschanged", onSupportedPlaybackRatesChanged);
- or -
mediaPlaybackSession.onsupportedplaybackrateschanged = onSupportedPlaybackRatesChanged;
Public Custom Event SupportedPlaybackRatesChanged As TypedEventHandler(Of MediaPlaybackSession, Object) 

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

Query whether a range of playback rates is supported by calling IsSupportedPlaybackRateRange.

Applies to