Mute a Call

This guide covers muting and unmuting a call. Before you begin, make sure you added the SDK to your app and (Android, iOS, JS) and you are able to make or receive calls.

Mute

Muting to stops others from hearing the muted call member.

//Mute myself
// After creating a session
client.mute(callId)
    .then(() => {
        console.log("Success muting.");
    })
    .catch(error => {
        console.error("Error muting: ", error);
    });

Unmute

Unmute a member to allow others to hear the previously muted member.

//Unmute myself
// After creating a session
client.unmute(callId)
    .then(() => {
        console.log("Success unmuting.");
    })
    .catch(error => {
        console.error("Error unmuting: ", error);
    });

Reference