<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] How to detect packet
loss</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">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:</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1">pVideoSrc->RTPgs()->statsGroupIncoming.totNumPackets()</font
></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1">pVideoSrc->RTPgs()->statsGroupIncoming.totNumBytes()</font
></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">(RTPSource
*pVideoSrc = pSubSession->rtpSource();)</font></blockquote>
<blockquote type="cite" cite> </blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">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.</font></blockquote>
<blockquote type="cite" cite> </blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">Is there any
method I can use on the source to find number of packets lost so
far?</font></blockquote>
<div><br></div>
<div>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").</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>