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 查询是否支持一系列播放速率。

适用于