onSpeakerChanged

fun onSpeakerChanged(participantId: String)

Called when the active speaker changes.

The active speaker is the participant who is currently speaking the loudest. When no one is speaking, this callback is fired with null.

Code Example:


override fun onSpeakerChanged(participantId: String?) {
    if (participantId != null) {
        Log.d("Meeting", "Active speaker: $participantId")
    }
}

Parameters

participantId

the ID of the active speaker participant, or null if no one is speaking