MediaPlaybackCommandManagerRateReceivedEventArgs 类

定义

提供数据或 MediaPlaybackCommandManager.RateReceived 事件,当命令管理器收到从系统媒体传输控件更改当前播放速率的命令时发生此事件。

public ref class MediaPlaybackCommandManagerRateReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MediaPlaybackCommandManagerRateReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MediaPlaybackCommandManagerRateReceivedEventArgs
Public NotInheritable Class MediaPlaybackCommandManagerRateReceivedEventArgs
继承
Object Platform::Object IInspectable MediaPlaybackCommandManagerRateReceivedEventArgs
属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

通过处理 MediaPlaybackCommandManager.RateReceived 事件获取此类的实例。

属性

Handled

获取或设置一个值,该值指示是否已处理 RateReceived 事件。

PlaybackRate

获取一个值,该值指示当前播放速率。

方法

GetDeferral()

获取一个 Deferral 对象,该对象导致系统等待你执行异步操作(例如,从网络源创建新的 MediaPlaybackItem ),然后继续处理更改率命令。

适用于