Player.Buffering event
[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.
Syntax
Player.Buffering(
Start
)
Parameters
-
Start
-
Boolean containing one of the following values.
Value Description true Buffering has started. false Buffering has ended.
Return value
This event does not return a value.
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 Network.bufferingProgress and Network.downloadProgress to determine whether Windows Media Player is currently buffering or downloading content.
The value of event parameters is specified by Windows Media Player, and can be accessed or passed to a method in an imported JScript file by using the parameter name given. This parameter name must be typed exactly as shown, including capitalization.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later. |
DLL |
|