RTCInboundRtpStreamStats:totalPausesDuration 属性
RTCRemoteInboundRtpStreamStats 字典的 totalPausesDuration 属性表示此视频流暂停的总时长(以秒为单位)。
当渲染新帧的时间距离上一帧渲染时间超过 5 秒时,将计算一次暂停,并且帧之间的时间差会累加到 totalPausesDuration 中。
可以使用 totalPausesDuration / pauseCount 计算平均暂停时长。
注意: 此属性对于音频流是未定义的。
值
一个正数,单位为秒。
规范
| 规范 |
|---|
| WebRTC 统计 API 的标识符 # dom-rtcinboundrtpstreamstats-totalpausesduration |
浏览器兼容性
加载中…