In the Custom Code dialog, name your function, In this case, you might use a name such as mutebtn
. Then use the following code: (note: gwd-video_1 is the id of your video)
if (document.getElementById('gwd-video_1').muted) {
document.getElementById('gwd-video_1').mute();
}