Skip to content

Commit

Permalink
clarifies JB metric measurement (#567)
Browse files Browse the repository at this point in the history
* clarifiews 441 and 541

* Update webrtc-stats.html

* based on review comments
  • Loading branch information
vr000m committed Jun 3, 2020
1 parent 7144002 commit e5b64a1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions webrtc-stats.html
Expand Up @@ -1551,9 +1551,18 @@ <h2>
</dt>
<dd>
<p>
It is the sum of the time, in seconds, each <a>audio sample</a> or video frame takes from
the time it is received and to the time it exits the jitter buffer. This increases
upon samples or frames exiting, having completed their time in the buffer (and
The purpose of the jitter buffer is to recombine RTP packets into frames (in the case of video)
and have smooth playout. The model described here assumes that the samples or frames are
still compressed and have not yet been decoded.
It is the sum of the time, in seconds, each <a>audio sample</a> or a video frame takes from
the time the first packet is received by the jitter buffer (ingest timestamp) to the
time it exits the jitter buffer (emit timestamp).
In the case of audio, several samples belong to the same RTP packet, hence they will have the same
ingest timestamp but different jitter buffer emit timestamps.
In the case of video, the frame maybe is received over several RTP packets, hence the ingest timestamp
is the earliest packet of the frame that entered the jitter buffer and the emit timestamp is
when the whole frame exits the jitter buffer.
This metric increases upon samples or frames exiting, having completed their time in the buffer (and
incrementing {{jitterBufferEmittedCount}}). The average jitter buffer
delay can be calculated by dividing the {{jitterBufferDelay}} with the
{{jitterBufferEmittedCount}}.
Expand Down

0 comments on commit e5b64a1

Please sign in to comment.