大网数据广告活动
Web 标准与前端开发

RTCRemoteInboundRtpStreamStats: fractionLost property

· 52CE 我爱测

The **`fractionLost`** property of the RTCRemoteInboundRtpStreamStats dictionary provides a value that can be used to determine the fraction of packets lost for this synchronization source (SSRC) in the last reporting interval.

WebRTC

The fractionLost property of the RTCRemoteInboundRtpStreamStats dictionary provides a value that can be used to determine the fraction of packets lost for this synchronization source (SSRC) in the last reporting interval.

To convert the value to a percentage, divide it by 256 and multiply by 100. For example, a value of 20 indicates a 7.8% packet loss.

Note that the value may not be precisely accurate due to the way that it is calculated, but it does provide a quick and convenient measure of the link quality.

Value

A number giving the fraction packet loss in the last reporting interval, multiplied by 256. The value is 0 if the calculated packet loss is negative.

[!NOTE] The value comes from the 8-bit fraction lost field of the last Sender Report (SR) or Receiver Report (RR) RTCP packet. The algorithm for calculating the value is defined in RFC 3550, Appendix A.3: Determining Number of Packets Expected and Lost.

Specifications

Browser compatibility

See also

  • 3550
  • 3550

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。