How do I prevent downloads of my videos?

Solved

How do I prevent downloads of my videos?

mOONbOOTS
Explorer
79 6 12

Hello,

 

I have videos in my products media gallery, and it displays the option to Download the videos. How do I prevent this?

 

Screenshot 2024-09-11 120651.pngScreenshot 2024-09-11 120707.png

 

Thank you.

Accepted Solution (1)

mOONbOOTS
Explorer
79 6 12

This is an accepted solution.

Never mind. I just added controlslist: 'nodownload' to the video tag.

View solution in original post

Replies 6 (6)

mOONbOOTS
Explorer
79 6 12

This is an accepted solution.

Never mind. I just added controlslist: 'nodownload' to the video tag.

RivaajEthnic
Excursionist
50 1 6

Hi,

 

I am facing same issue and want to disable download, play back from the videos. Where is video tag please?

 

 

Thanks

mOONbOOTS
Explorer
79 6 12

What theme are you using?

RivaajEthnic
Excursionist
50 1 6

Ella Theme

RivaajEthnic
Excursionist
50 1 6
mOONbOOTS
Explorer
79 6 12

You will want to look for a file like product-thumbnail.liquid and search for "echo media | media_tag".

 

I don't have the Ella Theme so I can't know for sure where the developer put this code, but depending on how many files there are, you can ctrl+f "echo media | media_tag" in all the files until you find it.

 

Once you find it, you'll want to make sure that "when 'video' echo media | media_tag" looks something like this: when 'video'
echo media | media_tag: image_size: '2048x', autoplay: true, loop: loop, controls: true, controlslist: 'nodownload', preload: 'none', muted: false