Hello, thank you for responses they helped me a lot. However I came up with a 
new question. I would like to get number of clients. It works partially okay, 
For example, when I connect new client, I can see this increment suddenly, when 
I disconnect client I see effect after 10-20 seconds. Lets say still 
acceptable. But when there is no client I get random values. I assume it is 
because there is no RTPSink alive anymore. and I could not find anyway to check 
if my created RTPSink is alive. I m storing its pointer but when there is no 
client, it is neither valid nor null, So I cant determine status if RTPSink.

Thanks In Advance
Ozgur Ayik
________________________________
From: live-devel <live-devel-boun...@us.live555.com> on behalf of Ross 
Finlayson <finlay...@live555.com>
Sent: Thursday, November 30, 2023 11:46 AM
To: LIVE555 Streaming Media - development & use <live-de...@us.live555.com>
Subject: Re: [Live-devel] Getting jitter value



> On Nov 30, 2023, at 11:27 PM, Ayik Ahmet <a.a...@constantrobotics.com> wrote:
>
> Hello, I want to get jitter from my RTPSink, but I cant get 
> RTPTransmissionStatsDB by using
>
> RTPTransmissionStatsDB& transmissionStatsDB() const { return 
> *fTransmissionStatsDB; }
>
> because RTPTransmissionStatsDB doesnot have any contructor. How can I obtain 
> this class instance to get jitter?

I think you’re misunderstanding the meaning of the "transmissionStatsDB()” 
function.  It’s not used to create an object; instead, it simply returns a 
reference to an object that already exists.  I.e., you can just do something 
like:
        RTPTransmissionStatsDB& db = myRTPSink->transmissionStatsDB();
        RTPTransmissionStatsDB::iterator iter(db);
        while ((RTPTransmissionStats* stats = iter.next()) != NULL) {
                unsigned jitter = stats->jitter(); // etc.
        }


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


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to