Skip to content

Commit

Permalink
Add totalPlayoutDelay and totalSamplesCount to RTCAudioPlayoutStats. (#…
Browse files Browse the repository at this point in the history
…683)

* Fixes #676

* No need for required

* Fixes #680

* Clarifications
  • Loading branch information
henbos committed Sep 20, 2022
1 parent cfb8128 commit b86cf85
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions webrtc-stats.html
Expand Up @@ -2505,6 +2505,8 @@ <h3>
<pre class="idl">dictionary RTCAudioPlayoutStats : RTCStats {
double synthesizedSamplesDuration;
double totalSamplesDuration;
double totalPlayoutDelay;
double totalSamplesCount;
};</pre>
<section>
<h2>
Expand Down Expand Up @@ -2544,6 +2546,32 @@ <h2>
samples.
</p>
</dd>
<dt>
<dfn>totalPlayoutDelay</dfn> of type <span class=
"idlMemberType">double</span>
</dt>
<dd>
<p>
When audio samples are pulled by the playout device, this
counter is incremented with the estimated delay of the playout
path for that audio sample. The playout delay includes the
delay from being emitted to the actual time of playout on the
device. This metric can be used together with
{{totalSamplesCount}} to calculate the average playout delay
per sample.
</p>
</dd>
<dt>
<dfn>totalSamplesCount</dfn> of type <span class=
"idlMemberType">double</span>
</dt>
<dd>
<p>
When audio samples are pulled by the playout device, this
counter is incremented with the number of samples emitted for
playout.
</p>
</dd>
</dl>
</section>
</div>
Expand Down

0 comments on commit b86cf85

Please sign in to comment.