[Live-devel] Getting jitter value

Ross Finlayson finlayson at live555.com
Thu Nov 30 02:46:42 PST 2023



> 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/




More information about the live-devel mailing list