Skip to content

Commit 0c5b180

Browse files
authored
timestamps needed for circuit breakers and a/v sync. (#211)
* timestamps need for #61 * addressing feedback comments from @jan-ivar and @taylor-b
1 parent c3109a3 commit 0c5b180

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

webrtc-stats.html

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,9 @@ <h3>
10361036
</p>
10371037
<div>
10381038
<pre class="idl">dictionary RTCInboundRTPStreamStats : RTCReceivedRTPStreamStats {
1039-
DOMString remoteId;
1040-
unsigned long framesDecoded;
1039+
DOMString remoteId;
1040+
unsigned long framesDecoded;
1041+
DOMHighResTimeStamp lastPacketReceivedTimestamp;
10411042
};</pre>
10421043
<section>
10431044
<h2>
@@ -1066,6 +1067,15 @@ <h2>
10661067
[[!MEDIA-SOURCE]].
10671068
</p>
10681069
</dd>
1070+
<dt>
1071+
<dfn><code>lastPacketReceivedTimestamp</code></dfn> of type <span class=
1072+
"idlMemberType"><a>DOMHighResTimeStamp</a></span>
1073+
</dt>
1074+
<dd>
1075+
<p>
1076+
Represents the timestamp at which the last packet was received for this SSRC. This differs from <code>timestamp</code>, which represents the time at which the statistics were generated by the local endpoint.
1077+
</p>
1078+
</dd>
10691079
</dl>
10701080
</section>
10711081
</div>
@@ -1192,10 +1202,12 @@ <h3>
11921202
</p>
11931203
<div>
11941204
<pre class="idl">dictionary RTCOutboundRTPStreamStats : RTCSentRTPStreamStats {
1195-
DOMString remoteId;
1196-
double targetBitrate;
1197-
unsigned long framesEncoded;
1198-
double totalEncodeTime;
1205+
DOMString remoteId;
1206+
DOMHighResTimeStamp lastPacketSentTimestamp;
1207+
double targetBitrate;
1208+
unsigned long framesEncoded;
1209+
double totalEncodeTime;
1210+
double averageRTCPInterval;
11991211
};</pre>
12001212
<section>
12011213
<h2>
@@ -1214,6 +1226,15 @@ <h2>
12141226
the same SSRC.
12151227
</p>
12161228
</dd>
1229+
<dt>
1230+
<dfn><code>lastPacketSentTimestamp</code></dfn> of type <span class=
1231+
"idlMemberType"><a>DOMHighResTimeStamp</a></span>
1232+
</dt>
1233+
<dd>
1234+
<p>
1235+
Represents the timestamp at which the last packet was sent for this SSRC. This differs from <code>timestamp</code>, which represents the time at which the statistics were generated by the local endpoint.
1236+
</p>
1237+
</dd>
12171238
<dt>
12181239
<dfn><code>targetBitrate</code></dfn> of type <span class=
12191240
"idlMemberType"><a>double</a></span>
@@ -1252,6 +1273,18 @@ <h2>
12521273
packetize the resulting data.
12531274
</p>
12541275
</dd>
1276+
<dt>
1277+
<dfn><code>averageRTCPInterval</code></dfn> of type <span class=
1278+
"idlMemberType"><a>double</a></span>
1279+
</dt>
1280+
<dd>
1281+
<p>
1282+
The average RTCP interval between two consecutive compound RTCP packets. This is
1283+
calculated by the sending endpoint when sending compound RTCP reports. Compound
1284+
packets must contain at least a RTCP RR or SR packet and an SDES packet with the
1285+
CNAME item.
1286+
</p>
1287+
</dd>
12551288
</dl>
12561289
</section>
12571290
</div>

0 commit comments

Comments
 (0)