I wanted an autoplaying video for my featured product. I see from the forums this is an ongoing problem (and I think Shopify should definitely address this once and for all in the theme options).
To achieve it I found this solutions in another thread – I added
at the end of theme.liquid and it works perfectly. Genius – if you’re required a click to make the video start, just emulate the click. Love it.
Unfortunately on mobile resolutions (<750px width) the responsive theme just puts an image preview and clicking it opens a lightbox with the video in it. Not exactly a good mobile experience.
How do I preserve the featured product preview block so that it keeps on being a video and not just a preview that opens a lightbox? I’ve been a developer for many years and the css/liquid structure is so dense I can’t figure it out after many hours of staring at the code.
commenting this out will solve the problem, but will prevent all deferred media to not get loaded until shown, so it’s a hit on bandwidth and also slightly screws up the gallery.