<!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-&gt;RTPgs()-&gt;statsGroupIncoming.totNumPackets()</font
></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1">pVideoSrc-&gt;RTPgs()-&gt;statsGroupIncoming.totNumBytes()</font
></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">(RTPSource
*pVideoSrc = pSubSession-&gt;rtpSource();)</font></blockquote>
<blockquote type="cite" cite>&nbsp;</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&nbsp;fPacketLossInFragmentedFrame of
MultiFramedRTPSouce.</font></blockquote>
<blockquote type="cite" cite>&nbsp;</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.&nbsp; You can use the &quot;RTPReceptionStats&quot; class
for this.&nbsp; For illustration, look at how the &quot;openRTSP&quot;
client application implements the &quot;-Q&quot; option (see
&quot;testProgs/playCommon.cpp&quot;).</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>