activeSpeakerMode()

activeSpeakerMode()

Compatibility:
Prebuilt
Custom

Returns a boolean indicating whether the call is in active speaker mode.

Our Daily Prebuilt Active Speaker feature displays the participant who is currently speaking prominently, while others are displayed smaller. When Active Speaker isn't enabled, the layout defaults to grid mode, where every participant appears the same size.

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. If you’re building a video call interface with the Daily call object, this method will always return false. However, you can listen to active-speaker-change events to build your own custom UI.

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

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