Microsoft DirectX 9.0 |
The get_LostPackets method retrieves the number of packets that have been lost.
Syntax
HRESULT get_LostPackets(
long *pLostPackets
);
Parameters
pLostPackets
Pointer to a variable that receives the number of lost packets.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
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.
Whenever playback is stopped and restarted, this property is set to zero. It is not reset if playback is paused and restarted.
See Also