mute

June 13, 2024 ยท View on GitHub

Description

Mute the audio volume.

It can then be un-muted through the unMute method.

As the volume is not dependent on a single content (it is persistent), this method can also be called when no content is playing.

Syntax

player.mute();

Example

// mute the current volume
player.mute();