MediaPlayer.SeekCompleted 事件

定义

在搜寻操作完成时发生。

注意

MediaPlayer.SeekCompleted 在Windows 10版本 1607 之后可能会被更改或不可用。 请改用 MediaPlayer.PlaybackSession 属性获取 MediaPlaybackSession 对象,然后使用 MediaPlaybackSession.SeekCompleted 事件。

// Register
event_token SeekCompleted(TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlayer::SeekCompleted_revoker SeekCompleted(auto_revoke_t, TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SeekCompleted(TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlayer::SeekCompleted_revoker SeekCompleted(auto_revoke_t, TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,object> SeekCompleted;
[add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<MediaPlayer,object> SeekCompleted;
function onSeekCompleted(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("seekcompleted", onSeekCompleted);
mediaPlayer.removeEventListener("seekcompleted", onSeekCompleted);
- or -
mediaPlayer.onseekcompleted = onSeekCompleted;
Public Custom Event SeekCompleted As TypedEventHandler(Of MediaPlayer, Object) 

事件类型

属性

适用于