Disable video player is ineffective
Hello,
With Nextcloud 19 (and maybe before) disable the video plug-in is ineffective There is no way to directly download the video with a player like vlc
The html5 player is very limited and useless in many cases (large video, mkv, etc) , I think that an "open with" choice could be great, with nextcloud android client there is a choice, unfortunately you must select your player each time but something similar could be a first step
At least remove the video plugin choice enable/disable because It's not understandable that there is no effect at all
How to reproduce: In netxcloud add-on interface disable "Video Player", after that click to video and the player still present (with his limitations for me)
Expected behaviour: The video file should be downloaded and opened by a local player linked to browser (vlc for example) or, if this a technical limitation, the choice to disable the add-on removed
Added "needs info" label due the missing issue template. I understand there are probably no logs to share and other setup related information not relevant but ADD (by editing your issue) at least some information how to reproduce the issue, the expected behaviour and the actual behaviour.
How to reproduce added and yes there is no log , thanks
Mind to add a screenshot? I suspect your browser is opening the video. We could probably send a download header if no viewer for file is enabled. For most people the browser's default behaviour should be fine. I think you can tell your browser to download media files instead of opening it.
Plug-in disable (sorry French language)

But js video player still working
And more annoying for me, many videos are unusable, for example all mkv files, but also large files (4k), etc


It's better with the android application I can use "cast" (diffuser in French) and chose vlc, like this all my videos works ! Still, I need to chose cast each time because by default the player is from nextcloud
FI: If I enable "video player" add-on there is no difference at all
cc @skjnldsv @juliushaertl
There are 2 different players :
"video player" app for public share of single video. "viewer" app for playing videos inside your instance (logged in) and also when using a public share of a folder containing videos.
this is confusing, and i think the team is working to use only one app but not sure about it...
the "viewer" app is also used to display photos.
I have no "viewer" except "pdf viewer"
But there is "photos" I will try to disable this plugin and post the result
I confirm no viewer I could disable, and photo seems also unrelated
hmm.. i don't know why but viewer app is not visible into the web UI but you can see it in your nextcloud/apps folder.
Great, video opened with vlc now, works like a charm !
So there is two"bugs" here
1 - we can't disable viewer with ui 2 - Disable viewer is also related with pictures, an only video option is needed
Thanks
hmm.. i don't know why but viewer app is not visible into the web UI but you can see it in your nextcloud/apps folder.
because it's a built-in app that cannot be disabled :)
It's better with the android application I can use "cast" (diffuser in French) and chose vlc, like this all my videos works ! Still, I need to chose cast each time because by default the player is from nextcloud
You should be able to right click the video and cast, no?
Only with Android app and I must select at each time, no choice saved Enough but not intuitive for users, but we can't do that with browser like ff
Arg, only "cast" in andoid works well
Now without "viewer" the video is well downloaded, but entirely before starting ...
Expected behaviour: The video file should be downloaded and opened by a local player linked to browser (vlc for example) or, if this a technical limitation, the choice to disable the add-on removed
I don't think that this is something we should do or offer to disable as showing the video is what most users would expect to happen. You can always download the file instead of viewing it from the file context menu.

Ok, maybe the "cast' option on Android could be added to the browser version ? And better with an option to use this by default
It works very very well, this option is the best choice in my opinion
-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

I mean this option "Diffuser avec" in French
I don't think that this is something we should do or offer to disable as showing the video is what most users would expect to happen. You can always download the file instead of viewing it from the file context menu.
This is a problem when I have a directory of VODs from a Twitch stream, and each of them is 10GB and when the Viewer opens, it takes an extremely long time preloading all these videos just to support the forward and back arrows, and all the user wanted was to preview the one file.
Once the player is open, we can move next and previous almost instantly, which is pretty cool, but ultimately useless to us, since it took so long to open the player in the first place. I would much rather be able to double click from the list and get the Viewer to open in <5 seconds.
If we can't disable it, it would be nice if we could at least configure it. For my use case, I have no need for allowing my users (in those specific directories) to use the forward or back chevrons and therefore I have no need for the Viewer to force them to wait for 600 video files to partially preload. Simply having a way to disable the preloading (could even allow us to set exceptions per-directory, or provide a threshold like only-preload-X-items) would be enough to make Viewer useful to me. As it is, it makes NextCloud for hosting a VOD archive a terrible experience, and quite unnecessarily at that.
+1 for an option to disable the player. Especially with large video files it places an unnecessary strain on the server on my instance.
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
- Update mimestype:
sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:mimetype:update-js
after restart web server :
sudo service nginx restart
- 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 ...
- Update existing files mapping :
sudo -u www-data php /usr/share/nginx/nextcloud/occ files:scan --all
- refresh user browser
et voila ....