Hi, so i want to upload a video that has sound and use it as the main background. I’m using Pro, and i was wondering since upon uploading it in the header section, if the video will be muted by default, also if it will run on mobile, it being muted. So if it is muted by default i am wondering if i can use this code on in the global theme js, so that i can make a mute/unmute speaker button that changes the state of the sound :
var button = document.getElementById('unmute');
button.onclick = function (){
video.muted = true;
};
var button = document.getElementById('unmute');
button.onclick = function (){
if (video.muted === true) {
video.muted = false;
}
else {
video.muted = true;
}
};