Hi! I have the Sense theme on Shopify, and I’m trying to enable autoplay for the product page slider. I managed to get it working on desktop without any issues, but on mobile, the video doesn’t load immediately.
In fact, when you swipe right on desktop, the video starts playing, whereas on mobile, there’s a play button that needs to be pressed.
It seems that the video isn’t loaded on mobile until the button is pressed. I’ve looked through the Liquid code, but I can’t find where the modal is to modify it.
I’d really appreciate any help. Thanks in advance!
Note: I’ve implemented a script that detects when the video becomes visible on the page and automatically clicks the play button as a workaround. However, this causes a delay in loading the video, resulting in a flashing effect.
If you want to see it in action, open the Developer Tools, resize the page to simulate a mobile device, and then refresh the page.