Skip to content

ElectronWebContents.setAudioMuted method

ElectronWebContents › setAudioMuted

Unofficial

Mutes or unmutes the audio on the current web page.

Signature:

setAudioMuted(muted: boolean): void

Parameters:

ParameterTypeDescription
mutedbooleanWhether the audio should be muted.

Returns: void