<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks In Advance</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ozgur Ayik</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> live-devel <live-devel-bounces@us.live555.com> on behalf of Ross Finlayson <finlayson@live555.com><br>
<b>Sent:</b> Thursday, November 30, 2023 11:46 AM<br>
<b>To:</b> LIVE555 Streaming Media - development & use <live-devel@us.live555.com><br>
<b>Subject:</b> Re: [Live-devel] Getting jitter value</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
> On Nov 30, 2023, at 11:27 PM, Ayik Ahmet <a.ayik@constantrobotics.com> wrote:<br>
> <br>
> Hello, I want to get jitter from my RTPSink, but I cant get RTPTransmissionStatsDB by using
<br>
> <br>
> RTPTransmissionStatsDB& transmissionStatsDB() const { return *fTransmissionStatsDB; }<br>
> <br>
> because RTPTransmissionStatsDB doesnot have any contructor. How can I obtain this class instance to get jitter?<br>
<br>
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:<br>
RTPTransmissionStatsDB& db = myRTPSink->transmissionStatsDB();<br>
RTPTransmissionStatsDB::iterator iter(db);<br>
while ((RTPTransmissionStats* stats = iter.next()) != NULL) {<br>
unsigned jitter = stats->jitter(); // etc.<br>
}<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
live-devel@lists.live555.com<br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div>
</span></font></div>
</body>
</html>