I have been trying to unmute a embed video in my Shopify Store Homepage but when I remove the unmute tag from the script the video doesn't autoplay or play at all. Can anyone help me out that what problem does my script have
<video src="my_video_url" autoplay="" loop="" muted="" playsinline=""></video>
<script>
setTimeout(function(){ document.getElementById('play').play(); },1000);
var video = document.querySelector('video');
video.muted = false;
video.play()
</script>
0 Replies