has anyone worked with live media libraries and know how to find bit/byte rate of live media server
===

Has anyone worked with live media libraries?
If so,can u tell me how to find out the bit/byte of live media server streaming an video file, i have an idea but was not able to find it out....
the idea is:-

If you're streaming using an RTPSink object, call its octetCount() method at two known times.  Then:

       double mbits_sent = (o2 - o1) / 1024.0 / 1024.0 / (s2 - s1);

where o2 and o1 are the octetCount() values at time_t s2 and s1.

Ross, could you please lift this method up a level, to MediaSink?  I wanted it when playing around with raw UDP streaming a few weeks ago. It would also avoid the need to dynamic_cast<> the sink object in certain circumstances, such as when accessing MediaSubsession::sink.