Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. RTCRtpReceiver
  4. getSynchronizationSources()

RTCRtpReceiver: getSynchronizationSources() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨January 2020⁩.

ThegetSynchronizationSources() method of theRTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the currentRTCRtpReceiver in the last ten seconds.

Syntax

js
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.

rtpTimestampOptional

The RTP timestamp (an integerDOMHighResTimeStamp) 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 bytimestamp, was initially sampled or generated.It may be useful for sequencing and synchronization purposes.

sourceOptional

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

timestampOptional

ADOMHighResTimeStamp indicating the most recent time at which a frame originating from this source was delivered to the receiver'sMediaStreamTrack

Specifications

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

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp