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

RTCInboundRtpStreamStats: jitterBufferDelay property

· 52CE 我爱测

The **`jitterBufferDelay`** property of the RTCInboundRtpStreamStats dictionary indicates the accumulated time that all audio samples and complete video frames have spent in the jitter.

WebRTC

The jitterBufferDelay property of the RTCInboundRtpStreamStats dictionary indicates the accumulated time that all audio samples and complete video frames have spent in the jitter.

For an audio sample the time is calculated from the time that the sample is received by the jitter buffer ("ingest timestamp"), until the time that the sample is emitted ("exit timestamp"). For a video frame, the ingest time is when the first packet in the frame was ingested until the time at which the whole frame exits the buffer. Note that several audio samples in an RTP packet will have the same ingest timestamp but different exit timestamps, while a video frame might be split across a number of RTP packets.

jitterBufferDelay is incremented, along with RTCInboundRtpStreamStats.jitterBufferEmittedCount, when samples or frames exit the buffer. The average jitter buffer delay is jitterBufferDelay / jitterBufferEmittedCount.

The jitter buffer may hold samples/frames for a longer (or shorter) delay, allowing samples to build up in the buffer so that it can provide a more smooth and continuous playout. A low and relatively constant jitterBufferDelay is desirable, as it indicates the buffer does not need to hold as many frames/samples, and the network is stable. Higher values might indicate that the network is less reliable or predictable.

Similarly, a steady average delay indicates a more stable network, while a rising average delay indicates growing latency.

Value

A positive number, in seconds.

Specifications

Browser compatibility

See also

  • RTCInboundRtpStreamStats.jitterBufferEmittedCount
  • RTCInboundRtpStreamStats.jitterBufferMinimumDelay
  • RTCInboundRtpStreamStats.jitterBufferTargetDelay

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

资料来源与适用范围

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

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

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