Function: setMuted()
ts
function setMuted(id, muted): Promise<void>;Defined in: Calls.ts:691
Changes the mute state of a call.
The system will emit a SetMutedActionEvent. Apply the mute state to your media connection when you receive this event.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The call session ID. |
muted | boolean | Whether the microphone should be muted. |
Returns
Promise<void>
See
addSetMutedActionListener — fires when the system requests a mute change (e.g. the user pressed mute in the CallKit UI); apply the change to your media stream from there.