Skip to content

Commit 253ee5f

Browse files
committed
RTCInboundRtpStreamStats.totalPausesDuration add
1 parent 25ec3eb commit 253ee5f

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

files/en-us/web/api/rtcinboundrtpstreamstats/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ The statistics can be obtained by iterating the {{domxref("RTCStatsReport")}} re
7575
- {{domxref("RTCInboundRtpStreamStats.packetsDiscarded", "packetsDiscarded")}}
7676
- : A positive integer that indicates the total number of RTP packets discarded by the jitter buffer due to late or early-arrival.
7777
- {{domxref("RTCInboundRtpStreamStats.pauseCount", "pauseCount")}}
78-
- : TBD.
78+
- : A positive integer that indicates the number of video pauses experienced by this receiver.
79+
_Undefined for audio streams._
7980
- {{domxref("RTCInboundRtpStreamStats.playoutId", "playoutId")}}
8081
- : TBD.
8182
- {{domxref("RTCInboundRtpStreamStats.remoteId", "remoteId")}}
@@ -100,7 +101,8 @@ The statistics can be obtained by iterating the {{domxref("RTCStatsReport")}} re
100101
- {{domxref("RTCInboundRtpStreamStats.totalInterFrameDelay", "totalInterFrameDelay")}}
101102
- : TBD.
102103
- {{domxref("RTCInboundRtpStreamStats.totalPausesDuration", "totalPausesDuration")}}
103-
- : TBD.
104+
- : A positive number indicating the total time that the stream has spent with paused video, in seconds.
105+
_Undefined for audio streams._
104106
- {{domxref("RTCInboundRtpStreamStats.totalProcessingDelay", "totalProcessingDelay")}}
105107
- : TBD.
106108
- {{domxref("RTCInboundRtpStreamStats.totalSamplesDuration", "totalSamplesDuration")}}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "RTCInboundRtpStreamStats: totalPausesDuration property"
3+
short-title: totalPausesDuration
4+
slug: Web/API/RTCInboundRtpStreamStats/totalPausesDuration
5+
page-type: web-api-instance-property
6+
browser-compat: api.RTCStatsReport.type_inbound-rtp.totalPausesDuration
7+
---
8+
9+
{{APIRef("WebRTC")}}
10+
11+
The **`totalPausesDuration`** property of the {{domxref("RTCRemoteInboundRtpStreamStats")}} dictionary indicates the total time that the video in this stream has spent paused, in seconds
12+
13+
A pause is counted when a new frame is rendered more than 5 seconds after the last frame was rendered, and the time taken between frames is added to the `totalPausesDuration`.
14+
15+
The average pause duration can be calculated using `totalPausesDuration / pauseCount`.
16+
17+
> [!NOTE]
18+
> The property is undefined for audio streams.
19+
20+
## Value
21+
22+
An positive number, in seconds.
23+
24+
## Specifications
25+
26+
{{Specifications}}
27+
28+
## Browser compatibility
29+
30+
{{Compat}}
31+
32+
## See also
33+
34+
- {{domxref("RTCInboundRtpStreamStats.pauseCount", "pauseCount")}}

0 commit comments

Comments
 (0)