Windows Media Player 11 SDK IWMPNetwork::get_downloadProgress 

Windows Media Player SDK banner art

Previous Next

IWMPNetwork::get_downloadProgress

The get_downloadProgress method retrieves the percentage of the download completed.

Syntax

  
    HRESULT get_downloadProgress(
  long*  plDownloadProgress
);

Parameters

plDownloadProgress

[out]  Pointer to a long containing the download 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

When the Windows Media Player control is connected to a digital media file that can be played and downloaded at the same time, the get_downloadProgress method retrieves the percentage of the total file that has been downloaded. This feature is currently supported only for digital media files downloaded from Web servers. The following file formats can be downloaded and played simultaneously:

  • Advanced Systems Format (ASF)
  • Windows Media Audio (WMA)
  • Windows Media Video (WMV)
  • MP3
  • MPEG
  • WAV

In addition, some AVI files can be downloaded and played simultaneously.

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