共用方式為


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以取得目前一組可搜尋的時間範圍。

適用於