I’m using the FLOW theme for Shopify. Here is a link to my website.
Some of the sections allow for selecting and showing videos that have been uploaded to Shopify Files.
I created a compressed version of a banner video and uploaded it. Its file size is only 255 KB.
This is the video that I’ve uploaded to files and am selecting
When my webpage loads, instead different video file is loaded that has a 1 MB file size.
This is the video that my website is loading
Can anyone help me understand what is happening, and how I can have my website load the compressed video files I created and not these other files?
Still looking for a solution, but here is more information based on further research and testing…
Here is the code where the issue resides:
{{ video | video_tag: autoplay: autoplay, loop: loop, muted: muted, controls: controls, data-selector: "native-video", class: 'hero-video-mp4', image_size: '1100x'}}
In the Theme settings, I select my video uploaded to Shopify Files, like in my previous reference image.
Instead of calling the uploaded file’s exact “source src”, Shopify instead plugs in its own generated file src. The Shopify-generated file has a 4x larger file size.
Shopify’s API “video_tag” generates the html
Is there a value I can enter into this line of code that forces Shopify to call my files URL, and not their generated URL? Or is there another solution?