JSFiddle - React, Tailwind, and code Playground
by geirby
HTML
<video autoplay muted loop class="awesomevideo">
<source src="http://cleft2020.com.emusoft.pro/img/The_city_of_white_nights_Saint_Petersburg.mp4" type="video/mp4">
</video>
<button id="unmuteButton">DDDDD</button>
<script>
var video = document.querySelector(".awesomevideo");
unmuteButton.addEventListener('click', function() {
//video.muted = false;
if(video.muted){
video.muted = false;
} else {
video.muted = true;
}
});
/* function toggle(video) {
video[video.paused ? "play" : "pause"](); */
</script>