setActiveSpeakerMode()

setActiveSpeakerMode(bool)

Compatibility:
Prebuilt
Custom

Enables or disables Active Speaker mode for the call.

Our Daily Prebuilt Active Speaker feature displays the participant who is currently speaking prominently, while others are displayed smaller. Active speaker mode only applies to the local participant, so changing the mode only changes the view locally.

Active Speaker mode only exists for calls that use Daily Prebuilt. However, you can listen to active-speaker-change events to build your own custom UI if you are building with the Daily call object.

If you are not currently in a call (you have not join()ed one), this method will have no effect.

To specify the initial mode when you first join() a call, set the activeSpeakerMode call property.