<font><b style="font-family:'comic sans ms',sans-serif;font-size:small"><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div style="font-weight:normal">
Hello Sir</div><div style="font-weight:normal"><br></div><div style="font-weight:normal">i try'ed calculating the bit/byte rate using the method mentioned below´ as</div><div><br></div><div><div>int o1=videoSink->octetCount();</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>videoSink->startPlaying(*videoSource, afterPlaying, videoSink);</div></div></span></b><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><b><br>
</b></font></font><span class="Apple-style-span" style="font-family:'comic sans ms',sans-serif"><b><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div style="display:inline!important">
<div style="display:inline!important">int o2=videoSink->octetCount();</div></div></span></b></span><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><b><br>
</b></span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><b>At both times the value of o1 and o2 are zero.</b></span></font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><b><br></b></span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><b>Kindly help to find bit/byte rate.</b></span></font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br></span></font><font><b style="font-family:'comic sans ms',sans-serif;font-size:small"><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal"><div>
<br></div></span></b></font><font><b style="font-family:'comic sans ms',sans-serif;font-size:small"><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal">If you're streaming using an RTPSink object, call its octetCount()<br>
method at two known times. Then:<br><br> double mbits_sent = (o2 - o1) / 1024.0 / 1024.0 / (s2 - s1)<br><br>where o2 and o1 are the octetCount() values at time_t s2 and s1.<br><br>Ross, could you please lift this method up a level, to MediaSink? I<br>
wanted it when playing around with raw UDP streaming a few weeks ago.<br>It would also avoid the need to dynamic_cast<> the sink object in<br>certain circumstances, such as when accessing MediaSubsession::sink.</span></b></font></div>