if(video.muted){ video.muted = false; console.log('is unmuted'); } else { video.muted = true; console.log('is muted'); }