Bagikan melalui


MediaPlayer.BufferingStarted Kejadian

Definisi

Terjadi ketika buffering telah dimulai.

Catatan

MediaPlayer.BufferingStarted dapat diubah atau tidak tersedia setelah Windows 10, versi 1607. Sebagai gantinya, gunakan properti MediaPlayer.PlaybackSession untuk mendapatkan objek MediaPlaybackSession lalu gunakan peristiwa MediaPlaybackSession.BufferingStarted .

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

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

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

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

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

Jenis Acara

Atribut

Berlaku untuk