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);
});
client.mute(callID) {
error ->
when {
error != null -> {
// Handle muting error
}
}
}
client.mute(callID) { error in
if error != nil {
// Handle 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);
});
client.unmute(callID) {
error ->
when {
error != null -> {
// Handle unmuting error
}
}
}
client.unmute(callID) { error in
if error != nil {
// Handle unmuting error
}
}