Windows Media Player 11 SDK IWMPNetwork::get_bufferingProgress 

Windows Media Player SDK banner art

Previous Next

IWMPNetwork::get_bufferingProgress

The get_bufferingProgress method retrieves the percentage of buffering completed.

Syntax

  
    HRESULT get_bufferingProgress(
  long*  plBufferingProgress
);

Parameters

plBufferingProgress

[out]  Pointer to a long containing the buffering progress.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

Each time playback is stopped and restarted, the value retrieved from this method is zero. It is not reset if playback is paused.

Buffering only applies to streaming content. This method retrieves valid information only during run time when the URL for playback is set using the IWMPCore::put_URL method.

Use the IWMPEvents::Buffering event to determine when buffering starts or stops.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next