[Live-devel] How to detect packet loss
Ross Finlayson
finlayson at live555.com
Tue Aug 17 16:04:00 PDT 2010
>While running the liveMedia client to receive RTP packets I acquire
>some statistics on the streamed data. I can easily get the total
>number of packets received and the number of bytes received like
>this:
>pVideoSrc->RTPgs()->statsGroupIncoming.totNumPackets()
>pVideoSrc->RTPgs()->statsGroupIncoming.totNumBytes()
>(RTPSource *pVideoSrc = pSubSession->rtpSource();)
>
>I would also like to check if packet loss occurred. I don't see any
>public method or member that can give me this. There is just this
>private member variable fPacketLossInFragmentedFrame of
>MultiFramedRTPSouce.
>
>Is there any method I can use on the source to find number of
>packets lost so far?
Yes. You can use the "RTPReceptionStats" class for this. For
illustration, look at how the "openRTSP" client application
implements the "-Q" option (see "testProgs/playCommon.cpp").
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100818/486d2f5c/attachment-0001.html>
More information about the live-devel
mailing list