I'm trying to toggle mute by clicking on the video.
I am able to un-mute the video when clicking using this code:
$(document).ready(function(){
$("video").prop('muted', true);
$("video").click( function (){
if( $("video").prop('muted', true) )
{
$("video").prop('muted', false)
}
});
});
Now I just want to be able to click again and it be muted.