useActiveSpeakerId(params?) : string | null
Use a filter to limit which participants should be considered as active speakers.
Parameters
Callback function to filter which participants should be considered as active speakers by this hook instance. Return
true to allow the passed session_id to become the next active speaker.If
true, useActiveSpeakerId will ignore when the local participant is the active speaker.Return value
Returnsstring | null. The active speaker’s session_id. If no participant has unmuted, useActiveSpeakerId returns null.