MediaPlaybackSession.SeekableRangesChanged 事件

定义

当可查找到的时间范围集更改时发生。

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

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

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

事件类型

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

通过调用 GetSeekableRanges 获取当前可查找时间范围集。

适用于