Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello All,
How do I get my videos in the media gallery on my product page to play unmuted?
Any help would be greatly appreciated.
Solved! Go to the solution
This is an accepted solution.
Solved it myself.
Added " muted: false " to the product-thumbnail.liquid file:
{% comment %} added - muted: false {% endcomment %} <template> {%- liquid case media.media_type when 'external_video' assign video_class = 'js-' | append: media.host if media.host == 'youtube' echo media | external_video_url: autoplay: true, loop: loop, playlist: media.external_id | external_video_tag: class: video_class, loading: 'lazy' else echo media | external_video_url: autoplay: true, loop: loop | external_video_tag: class: video_class, loading: 'lazy' endif when 'video' echo media | media_tag: image_size: '2048x', autoplay: true, loop: loop, controls: true, preload: 'none', muted: false when 'model' echo media | media_tag: image_size: '2048x', toggleable: true endcase -%} </template>
This is an accepted solution.
Solved it myself.
Added " muted: false " to the product-thumbnail.liquid file:
{% comment %} added - muted: false {% endcomment %} <template> {%- liquid case media.media_type when 'external_video' assign video_class = 'js-' | append: media.host if media.host == 'youtube' echo media | external_video_url: autoplay: true, loop: loop, playlist: media.external_id | external_video_tag: class: video_class, loading: 'lazy' else echo media | external_video_url: autoplay: true, loop: loop | external_video_tag: class: video_class, loading: 'lazy' endif when 'video' echo media | media_tag: image_size: '2048x', autoplay: true, loop: loop, controls: true, preload: 'none', muted: false when 'model' echo media | media_tag: image_size: '2048x', toggleable: true endcase -%} </template>
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025