[Live-devel] Retrieving stats for ProxyServerMediaSession

Ross Finlayson finlayson at live555.com
Wed Nov 8 01:33:06 PST 2023



> On Nov 8, 2023, at 1:23 AM, Andy Hawkins <Andy.Hawkins at uniguest.com> wrote:
> 
> Hi,
> 
> Thanks again, that's very helpful.
> 
> One remaining issue, the 'getRTPSinkandRTCP' method in returns *const*​ pointers, but the RTPSink member 'getTotalBitrate' is not a const method, so can't be called from these pointers.

Correct.  “getTotalBitrate()” modifies the state of the object (to reset the ‘last called time’ and counter), so it can’t be const.

So, in the pseudo code I included in my last email, the declaration of “rtpSink” should have been
	RTPSink* rtpSink;
(at least, if you want to call “getTotalBitrate()”


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list