Evento buffering dell'oggetto AxWindowsMediaPlayer

[La funzionalità associata a questa pagina, Lettore multimediale Windows SDK, è una funzionalità legacy. È stata sostituita da MediaPlayer. MediaPlayer è stato ottimizzato per Windows 10 e Windows 11. Microsoft consiglia vivamente che il nuovo codice usi MediaPlayer anziché Lettore multimediale Windows SDK, quando possibile. Microsoft suggerisce che il codice esistente che usa le API legacy venga riscritto per usare le nuove API, se possibile.

L'evento Buffering si verifica quando il controllo Lettore multimediale Windows inizia o termina il buffering o il download.

[C#]
private void player_Buffering(
  object sender,
  _WMPOCXEvents_BufferingEvent e
)

[Visual Basic]
Private Sub player_Buffering(
  sender As Object,
  e As _WMPOCXEvents_BufferingEvent
) Handles player.Buffering

Dati eventi

Il gestore associato a questo evento è di tipo AxWMPLib._WMPOCXEvents_BufferingEventHandler. Questo gestore riceve un argomento di tipo AxWMPLib._WMPOCXEvents_BufferingEvent, che contiene la proprietà seguente correlata a questo evento.

Proprietà Descrizione
Inizia System.BooleanSpecifica se il buffering è iniziato o terminato. Un valore true indica che è iniziato; un valore false indica che è stato terminato.

Commenti

Usare questo evento per determinare quando il buffering o il download inizia o si arresta. È possibile usare lo stesso blocco eventi per entrambi i casi e testare IWMPNetwork. bufferingProgress e IWMPNetwork. downloadProgress per determinare se Lettore multimediale Windows è attualmente in buffering o download di contenuto.

Requisiti

Requisito Valore
Versione
Lettore multimediale Windows serie 9 o versioni successive
Spazio dei nomi
AxWMPLib
Assembly
AxInterop.WMPLib.dll (AxInterop.WMPLib.dll.dll)

Vedi anche

Oggetto AxWindowsMediaPlayer (VB e C#)

IWMPNetwork.bufferingProgress (VB e C#)

IWMPNetwork.downloadProgress (VB e C#)