onMainParticipantChanged

Called when the main participant changes.

The main participant is typically determined by a combination of active speaker, pin state, and presentation status.

Code Example:


override fun onMainParticipantChanged(participant: Participant) {
    Log.d("Meeting", "Main participant: ${participant.displayName}")
}

Parameters

participant

the new main Participant