Speaker Indication - Android
Speaker indication feature in VideoSDK let you know, which participant is 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
.
We can access onSpeakerChanged
event through meeting object.
onSpeakerChanged Event​
- Kotlin
- Java
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)
}
};
private final MeetingEventListener meetingEventListener = new MeetingEventListener() {
// ...
@Override
public void onSpeakerChanged(String participantId) {
Toast.makeText(MainActivity.this, "active Speaker Id" + participantId, Toast.LENGTH_SHORT).show();
super.onSpeakerChanged(participantId);
}
};
Got a Question? Ask us on discord