<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite">i was wondering how to<br></blockquote><blockquote type="cite">find out the bit/byte rate of streaming of live media server,that i can<br></blockquote><blockquote type="cite">print on the console???<br></blockquote><br>If you're streaming using an RTPSink object, call its octetCount() method at two known times. Then:<br><br><span class="Apple-tab-span" style="white-space:pre"> </span>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?</div></blockquote><div><br></div></div>No, because the field ("fOctetCount") is updated only by the "RTPSink" subclass, so it's specific to that class. If people want to count bytes for some other subclass of "MediaSink", then they'll need to do so themselves (via subclassing).<br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>