Skip to content

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

ParameterTypeDescription
idstringThe call session ID.
mutedbooleanWhether 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.

Released under the MIT License.