I\'ve created a simple video block with muted (for mobile autostart) but now i can not change the mute state...
I used that repository , fiddle link would be great.
Try this:
function toggleMute() {
var video=document.getElementById("myVideo");
video.muted = !video.muted;
}
Check example here
If your own code is not working, try adding an id
to your video/element you want the click to register on and using:
var video=document.getElementById("myVideo") ;
$(video).on("click", function(e){
video.muted = !video.muted;
});