[Live-devel] Getting jitter value

Ayik Ahmet a.ayik at constantrobotics.com
Fri Dec 1 08:19:29 PST 2023


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-bounces at us.live555.com> on behalf of Ross Finlayson <finlayson at live555.com>
Sent: Thursday, November 30, 2023 11:46 AM
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] Getting jitter value



> On Nov 30, 2023, at 11:27 PM, Ayik Ahmet <a.ayik at 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 at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20231201/79c4865e/attachment.htm>


More information about the live-devel mailing list