useActiveParticipant(params?) : Object | null
useActiveParticipant can also set up an optional callback for the active-speaker-change event.
Parameters
If
true, useActiveParticipant will not return a participant object when the local participant is the active speaker.Event callback for the
active-speaker-change event listener.Return value
ReturnsDailyParticipant | null. Contains detailed information about the participant, see participant properties. If no participant has unmuted, useActiveParticipant returns null.