Documentation Menu

mute()

The mute() function allows you to mute the audio of the currently playing FacePop video.

Usage

When called, this function mutes the video if it's currently playing. It has no effect if the video is already muted.

// Mute the video audio
Answerly.FacePop.mute();

Note: This function only affects videos that are currently playing. If the video is paused, the audio state will be applied when playback resumes.

Examples

Basic Usage

// Mute the FacePop video audio
Answerly.FacePop.mute();

Using with Play Function

// Start playing the video with audio muted
Answerly.FacePop.mute();
Answerly.FacePop.play();

Using with Event Listeners

// Mute the video when a specific button is clicked
document.getElementById('muteButton').addEventListener('click', function() {
  Answerly.FacePop.mute();
  console.log('Video has been muted');
});

Need More Help?

If you have any questions about using the mute() function or any other aspect of the FacePop SDK, please visit our help center or contact our support team.