Windows Media Player 11 SDK Network.downloadProgress
Previous | Next |
Network.downloadProgress
The downloadProgress property retrieves the percentage of download completed.
Syntax
Possible Values
This property is a read-only Number (long).
Remarks
When the Windows Media Player control is connected to a media file that can be played and downloaded at the same time, the downloadProgress property returns the percentage of the total file that has been downloaded. This feature is currently supported only on 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
- Some AVI files
Use the Player.Buffering event to determine when the downloading begins and ends.
Example Code
The following JScript example uses Network.downloadProgress to display the percentage of downloading completed. The information is displayed in an HTML DIV created with ID = "DP". The example uses a timer with a 1 second interval to update the display. The Player object was created with ID = "Player".
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
Previous | Next |