By using AWS re:Post, you agree to the Terms of Use

Mute all functionality in aws chime javascript sdk


Hi we want the presenter who is presenting the meeting can mute all the other attendees in aws chime we are using aws chime sdk javascript for the client side we want this feature as is there functionality where we can get all the attendee's meeting session and we mute every attendees audio.

asked 2 years ago123 views
3 Answers

Hi, I have the same question. I tried to find any info in the documentation on how my Admin can mute all other attendees, but no luck. Has someone managed to do that in javascript?

answered 2 years ago

Yes I did it by myself you just have to use the function. The way I did it by passing the mute to all except to self and you can only show the mute button to admin basically who is the first joinee. And for the rest you don't show that. The messages that I recieved from AWS are this you can see that I am quoting it below:
"I believe Doug was explaining that you could use the data messages channel ( to inform the client (the front-end application) that they are to be muted. Based on the receipt of the message, the front end application would trigger the mute/unmute capability ( on the client to control the mute state."
The way I did it, I created a topic named 'muteAll' which is like pub sub model working here then I have subsrcibed to it when I recieve the message which is the admin pressing the muteall button then on the basis of that I mute all the attendees basically every attendee is subsribed to this message it is the same way how the messages are working here for the people who are typing. So I am sharing the code below for that but if you want the full code with this functionality I can definetly share with you feel free to contact me
dataMessageMuteAllHandler(dataMessage: DataMessage): void {
if (!dataMessage.throttled) {
const isSelf = dataMessage.senderAttendeeId === this.meetingSession.configuration.credentials.attendeeId;
console.log("self Not Mute");
console.log("Other clients Muted")

} else {  
  this.log('Message is throttled. Please resend');  


const buttonMuteAll = document.getElementById('button-mute');
buttonMuteAll.addEventListener('mousedown', async _e => {
if (this.toggleButton('button-mute')) {
console.log('buttonMuteAll unmute');
this.audioVideo.realtimeSendDataMessage(DemoMeetingApp.DATA_MESSAGE_TOPIC_MUTE, "muteAll", DemoMeetingApp.DATA_MESSAGE_LIFETIME_MS);
this.dataMessageMuteAllHandler(new DataMessage(,
new TextEncoder().encode("muteAll"),

answered 2 years ago

Thanks a lot! You really helped me! I will try to implement this solution.

Edited by: vzavozova on Oct 29, 2020 2:23 AM

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions