Search...
mute( )
Mutes audio volume.
Syntax
function mute(): Promise<void>
mute Parameters
This function does not take any parameters.
Returns
Fulfilled - When the volume has been muted.
Return Type:
Promise<void>
Was this helpful?
Mute volume
Copy Code
1$w("#myAudioPlayer").mute();
Mute volume and log a message when done
Copy Code
1$w("#myAudioPlayer").mute()2 .then( () => {3 console.log("Done with mute");4 } );