Autoplay product gallery video on Dawn 12.0.0

Hi everyone, I’m figuring out how to autoplay product gallery videos on Dawn theme 12.0.0.

Now the video appears as an image with an icon to click to make it run. So there is no video tag to give an autoplay attribute.

Any suggestion?

Hi @emanuelepasin ,

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code

  1. Layout/theme.liquid
  2. Add code below to end of file and before tag

    

Unfortunately it’s not working properly on desktop because the js scroll the page to the video tumbnail. Moreover it’s not working on mobile.

Hi @emanuelepasin ,

You can use code below:


    
    

Sorry for my late reply! It works great on desktop but on mobile it scrolls directly to the video media and the other pictures are not showing anymore. It’s something related to the CSS in the media query.

Hello,

Thanks for the code. I agree with @emanuelepasin that it makes the video show up first. Is there a way to stop it moving the video location please?