Skip to main content
startRemoteParticipantsAudioLevelObserver(interval?) Once started, a remote-participants-audio-level event is emitted at the specified interval containing a map of participant IDs to audio level values.

Parameters

interval
number
default:"100"
Polling interval in milliseconds. Minimum is 100ms. Defaults to 100ms.

Return value

Returns Promise<void>.

Example

// Emit remote-participants-audio-level every 500ms
call.startRemoteParticipantsAudioLevelObserver(500);

call.on('remote-participants-audio-level', ({ participantsAudioLevel }) => {
  for (const [participantId, level] of Object.entries(participantsAudioLevel)) {
    console.log(`${participantId}: ${level}`);
  }
});

See also