Speaker Indication - Android
The speaker indication feature in VideoSDK lets you know which participant is the active speaker in a meeting.
Whenever any participant speaks in meeting, onSpeakerChanged event will trigger.
For example, the meeting is running with Alice and Bob. Whenever any of them speaks, onSpeakerChanged event will trigger and return the speaker participantId. When nobody is speaking, it returns null.
We can access onSpeakerChanged event through meeting object.
onSpeakerChanged Event
private val meetingEventListener: MeetingEventListener = object : MeetingEventListener() {
// ...
override fun onSpeakerChanged(participantId: String?) {
Toast.makeText(this@MainActivity, "active Speaker Id" + participantId, Toast.LENGTH_SHORT).show()
super.onSpeakerChanged(participantId)
}
}
Got a Question? Ask us on discord

