Windows Media Player 11 SDK Network.lostPacketsĀ
Previous | Next |
Network.lostPackets
The lostPackets property retrieves the number of packets lost.
Syntax
Possible Values
This property is a read-only Number (long).
Remarks
This property is only valid for streaming media, and will equal zero when using the HTTP protocol, which is lossless.
Packets may be lost for a number of reasons, such as the type and quality of the network connection.
Each time playback is stopped and restarted, this property is set to zero. It is not reset if playback is paused and restarted. This property returns valid information only during run time, and only if the Player**.URL** property is set.
Example Code
The following JScript example uses Network.lostPackets to display the total number of packets lost during playback when the user clicks a button. The information is displayed in an HTML DIV created with ID = "LP". 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 |