From Bright Pattern Documentation
Jump to: navigation, search
• 5.19


Mute or unmute the user’s microphone for a particular call. Mute with the true value, and unmute with the false value.



setCallMute(state: boolean, interactionId?: string): Promise<OperationResult<null>>


Parameter Parameter Values Data Type Optional/Required Description
state Boolean Required Mute the user’s microphone with the true value, and unmute it with the false value.
interactionId String Optional The ID of the interaction for which this action will apply to. If not specified, the active interaction will be used.

Example Request

setCallMuteButton.onclick = () => {

    const muteCall = callMuteCheckbox.checked

    const itemId = activeInteractionIdInput.value

    adApi.setCallMute(muteCall, itemId)


Return Value

< Previous | Next >