Mute All Participants - Android
If you are the host or moderator of a video conference, you may want to mute all the participants at once. This can be useful in various scenarios, such as when you want to deliver a presentation or when there is background noise that is causing distractions.
- To achieve this, you have to iterate over the list of participants from the
Meetingclass and calldisableMicmethod fromParticipantclass.
- Kotlin
- Java
btnMuteAllParticipant!!.setOnClickListener { _: View? ->
var participants: Iterator<Participant> = meeting.participants.values.iterator()
for (i in 0 until meeting.participants.size) {
val participant = participants.next()
participant.disableMic()
}
}
btnMuteAllParticipant.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final Iterator<Participant> participants = meeting.getParticipants().values().iterator();
for (int i = 0; i < meeting.getParticipants().size(); i++) {
final Participant participant = participants.next();
participant.disableMic();
}
}
});
note
Participant who will be muting other participants should have permission allow_mod passed in the token. To know more about permissions visit here.
API Reference
The API references for all the methods and events utilised in this guide are provided below.
Got a Question? Ask us on discord

