RTCRtpReceiver: getSynchronizationSources() method

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






Return value

An array of object 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 Optional

A double-precision floating-point value between 0.0 and 1.0 specifying the audio level (in dBov) contained in the last RTP packet played from this source.

rtpTimestamp Optional

The RTP timestamp of the media played out at the time indicated by timestamp. This value is a source-generated time value which can be used to help with sequencing and synchronization.

source Optional

A 32-bit unsigned integer value specifying the CSRC identifier of the contributing source.

timestamp Optional

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


WebRTC: Real-Time Communication in Browsers
# dom-rtcrtpreceiver-getsynchronizationsources

Browser compatibility

BCD tables only load in the browser