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

RTCRtpReceiver: getSynchronizationSources() method

· 52CE 我爱测

The **`getSynchronizationSources()`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current `RTCRtpReceiver` in the last ten seconds.

WebRTC API

The getSynchronizationSources() method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current RTCRtpReceiver in the last ten seconds.

Syntax

getSynchronizationSources()

Parameters

None.

Return value

An array of objects, each describing one of the synchronization sources that provided data to the incoming stream in the past ten seconds. These objects contain the following properties:

  • audioLevel

    • : A floating-point value between 0.0 and 1.0 specifying the audio level contained in the last RTP packet played from the synchronization source.

      The value is on a linear scale and is defined in units of dBov, or decibels (overload). This is the amplitude relative to the point at which clipping of the audio begins to occur. A value of 1.0 represents 0 dBov (maximum volume), a value of 0.0 represents silence, and a value of 0.5 represents approximately 6 dB SPL (decibels of sound pressure level) change in the sound pressure level from 0 dBov.

      This value is required and always present.

  • rtpTimestamp

    • : The RTP timestamp (an integer DOMHighResTimeStamp) of the media. This source-generated timestamp indicates the time at which the media in this packet, scheduled for play out at the time indicated by timestamp, was initially sampled or generated. It may be useful for sequencing and synchronization purposes.
  • source

    • : A positive integer value specifying the SSRC identifier of the synchronization source. This uniquely identifies the source of the particular stream RTP packets.
  • timestamp

    • : A DOMHighResTimeStamp indicating the most recent time at which a frame originating from this source was delivered to the receiver's MediaStreamTrack

Specifications

Browser compatibility

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

资料来源与适用范围

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

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

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