次の方法で共有


IWMPEvents::Buffering method (wmp.h)

[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.

Syntax

void Buffering(
  [in] VARIANT_BOOL Start
);

Parameters

[in] Start

Specifies whether buffering has begun or ended. A value of true indicates that it has begun; a value of false indicates that it has ended.

Return value

None

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::get_bufferingProgress and IWMPNetwork::get_downloadProgress to determine whether Windows Media Player is currently buffering or downloading content.

Requirements

Requirement Value
Minimum supported client Windows Media Player 9 Series or later.
Target Platform Windows
Header wmp.h
DLL Wmp.dll

See also

IWMPEvents Interface

IWMPNetwork::get_bufferingProgress

IWMPNetwork::get_downloadProgress