Windows Media Player 11 SDK IWMPNetwork::get_downloadProgress
The get_downloadProgress method retrieves the percentage of the download completed.
HRESULT get_downloadProgress( long* plDownloadProgress );
[out] Pointer to a long containing the download progress.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
|S_OK||The method succeeded.|
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)
In addition, some AVI files can be downloaded and played simultaneously.
Use the IWMPEvents::Buffering event to determine when buffering starts or stops.
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.