Skip to main content
setActiveSpeakerMode(enabled) Prebuilt Custom In Active Speaker mode, the currently speaking participant is displayed prominently while others appear smaller. This is a local-only change — it does not affect other participants’ views. Has no effect if called before join(). To specify the initial mode when joining, set the activeSpeakerMode call property.
Active Speaker mode only exists in Daily Prebuilt. In custom call object builds, listen to active-speaker-change events to drive your own active speaker UI.

Parameters

enabled
boolean
required
true to enable Active Speaker mode, false to disable it.

Return value

Returns this for chaining.

Example

document.getElementById('active-speaker-toggle').addEventListener('change', (e) => {
  call.setActiveSpeakerMode(e.target.checked);
});

See also