Buffering Event of the AxWindowsMediaPlayer Object
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The Buffering event occurs when the Windows Media Player control begins or ends buffering or downloading.
[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
Event Data
The handler associated with this event is of type AxWMPLib._WMPOCXEvents_BufferingEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_BufferingEvent, which contains the following property related to this event.
Property | Description |
---|---|
Start | System.BooleanSpecifies whether buffering has begun or ended. A value of true indicates that it has begun; a value of false indicates that it has ended. |
Remarks
Use this event to determine when buffering or downloading starts or stops. You can use the same event block for both cases and test IWMPNetwork.bufferingProgress and IWMPNetwork.downloadProgress to determine whether Windows Media Player is currently buffering or downloading content.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player 9 Series or later |
Namespace |
AxWMPLib |
Assembly |
|