server icon indicating copy to clipboard operation
server copied to clipboard

Disable video player is ineffective

Open fredbcode opened this issue 6 years ago • 22 comments

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

fredbcode avatar Jun 08 '20 17:06 fredbcode

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.

kesselb avatar Jun 08 '20 18:06 kesselb

How to reproduce added and yes there is no log , thanks

fredbcode avatar Jun 08 '20 18:06 fredbcode

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.

kesselb avatar Jun 08 '20 18:06 kesselb

Plug-in disable (sorry French language)

image

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 image

image image

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

fredbcode avatar Jun 08 '20 19:06 fredbcode

cc @skjnldsv @juliushaertl

kesselb avatar Jun 08 '20 20:06 kesselb

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.

Walterfilms avatar Jun 11 '20 12:06 Walterfilms

I have no "viewer" except "pdf viewer"

But there is "photos" I will try to disable this plugin and post the result

fredbcode avatar Jun 11 '20 13:06 fredbcode

I confirm no viewer I could disable, and photo seems also unrelated

fredbcode avatar Jun 11 '20 17:06 fredbcode

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.

Walterfilms avatar Jun 12 '20 13:06 Walterfilms

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

fredbcode avatar Jun 12 '20 14:06 fredbcode

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 :)

skjnldsv avatar Jun 12 '20 14:06 skjnldsv

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?

skjnldsv avatar Jun 12 '20 14:06 skjnldsv

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

fredbcode avatar Jun 12 '20 14:06 fredbcode

Arg, only "cast" in andoid works well

Now without "viewer" the video is well downloaded, but entirely before starting ...

fredbcode avatar Jun 12 '20 15:06 fredbcode

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.

image

juliusknorr avatar Jun 15 '20 09:06 juliusknorr

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é.

fredbcode avatar Jun 15 '20 11:06 fredbcode

Screenshot_2020-06-15-13-11-35-35_06ea656a9ba653ff96746f477f32d0f9

I mean this option "Diffuser avec" in French

fredbcode avatar Jun 15 '20 11:06 fredbcode

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.

fouram avatar Jun 28 '22 15:06 fouram

+1 for an option to disable the player. Especially with large video files it places an unnecessary strain on the server on my instance.

normen avatar Nov 04 '22 22:11 normen

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 ....

ghost avatar Dec 27 '22 19:12 ghost