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

RTCOutboundRtpStreamStats: ssrc property

· 52CE 我爱测

The **`ssrc`** property of the RTCOutboundRtpStreamStats dictionary contains a positive integer value that identifies the synchronization source (SSRC) of this stream of RTP packets.

WebRTC

The ssrc property of the RTCOutboundRtpStreamStats dictionary contains a positive integer value that identifies the synchronization source (SSRC) of this stream of RTP packets.

A source might be something like a microphone, or a mixer application that combines multiple sources. All packets from the same source share the same time source and sequence space, and so can be ordered relative to each other. Note that two streams with the same ssrc value refer to the same source.

Value

A positive 32-bit integer uniquely identifying the SSRC of the RTP packets whose statistics are covered by this RTCOutboundRtpStreamStats object.

The manner in which SSRC values are generated is not mandated by the specification, although it does make recommendations. You should not make any assumptions based on the value of ssrc other than that any two objects with the same ssrc value refer to the same source. See 3550 for additional information about ssrc.

[!NOTE] The specification includes an example that generates values for ssrc using MD5. While not part of the standard, exactly, it is a good mechanism that may be used by some browsers; others may use other methods, such as random number generators. Do not rely upon these values meaning anything other than "these objects are associated with the same source."

Specifications

Browser compatibility

See also

  • RTCRtpReceiver.getSynchronizationSources()
  • RTCEncodedAudioFrame.getMetadata()

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

资料来源与适用范围

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

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

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