Techiio-author
Started by James CharlesSep 4, 2021

Open
Trying to unmute a embed video in Shopify homepage

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

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

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance