Okey, So I added a video to my product.
I then changed the controls to fales in the product thumbnail liquide file. That removed the controls from the video as I want.
I then put a javascript inside the themes.liquide file to make the vide auto play because of some reason “autoplay and loop” is not working automatically.
So issue: For some reason the video works great on a desktop, works great with the autoplay from javascript etc. But when on a phone or smaller screen, it seems like the thumbnail becomes a button?? I cant figure out why its not playing on a smaller screen, and why I cant click to start it even.
This is the code :
{% if template contains "product" %}
{% endif %}
Can you share your store url so I can get the context of the issue?
If there is also audio autoplay with is an user annoyance and requires user interaction.
https://developer.chrome.com/blog/autoplay/
Hey the issue is simple. I added a video for the product. When adding a product to shopify you can chose to add a video. With that I changed so that the video will start playing automatically with the javascript. Also I added so that the controllers are not visible. All works great on computer but when on phone the video is not starting. Its like the “image” for the video is a thumbnail with no start button because the controlls are hidden. All I want basically is that the video is rolling on loop and and automatically when you enter the page.
like on this website example : https://looplasso.com/products/looplassov3-bbundle