Hey folks, I hope everyone is well.
I’m in the process of uploading 3D videos of our products to our store, however I’d like the videos to play automatically, loop indefinitely and have no visible controls. I’ve had a tinker but I can’t figure it out unfortunately.
Here’s a snippet of the code in question - can anyone point me in the right direction?
For reference we’re using the focal theme by maestrooo.
Thanks folks!
Dave
{%- when 'video' -%}
Update this snippet:
{{- media | video_tag: image_size: '1024x', controls: true, autoplay: true, muted: section.settings.enable_video_autoplay, loop: section.settings.enable_video_looping -}}
To:
{{ media | video_tag: image_size: '1024x', autoplay: true, loop: section.settings.enable_video_looping, controls: false }}
PS: You may need to go to your theme editor to enable/disable video looping with a checkbox.
Resource: Control video functionality with parameters