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:

Parameter Type Description
muted boolean Whether the audio should be muted.

Returns: void