共用方式為


MediaPlaybackSession.SupportedPlaybackRatesChanged 事件

定義

發生于媒體播放會話支援的播放速率集變更時。

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

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

呼叫 IsSupportedPlaybackRateRange,查詢是否支援播放速率範圍。

適用於