Disable video playback

Hi there!
Anybody know how to disable playback on mp4 files? I want to allow user to download file, but without playback in browser, this is load my system resources.
Thanks a lot

Playback won’t use your server’s resources, it will just send the data in the file to the client and use the client’s resources to decompress and play the file.

On a Raspberry PI4 That Not really works…
I would appreciate to know how to disable the viewer only for .mp4 Files.

try this …

1.Copy alias :

sudo cp /usr/share/nginx/nextcloud/resources/config/mimetypealiases.dist.json /usr/share/nginx/nextcloud/config/mimetypealiases.json

2.Copy mapping :

sudo cp /usr/share/nginx/nextcloud/resources/config/mimetypemapping.dist.json /usr/share/nginx/nextcloud/config/mimetypemapping.json

  1. Update mimestype:

sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:mimetype:update-js

after restart web server :

sudo service nginx restart

  1. Edit and change mapping :

sudo nano /usr/share/nginx/nextcloud/config/mimetypemapping.json

you want directly download ex :

"mkv": ["video/x-matroska"],

for

"mkv": ["application/octet-stream"],

avi mp4 etc …

  1. Update existing files mapping :

sudo -u www-data php /usr/share/nginx/nextcloud/occ files:scan --all

  1. refresh user browser

et voila …