nextcloud / viewer

🖼 Simple file viewer with slideshow for media
GNU Affero General Public License v3.0
94 stars 54 forks source link

disable previous / next video preloading #2284

Open olaulau opened 6 months ago

olaulau commented 6 months ago

Is your feature request related to a problem? Please describe. when playing some high rate video (from a gopro for example), with many in the same folder, the viewer preloads simultaneously the previous and the next video, which can be very laggy.

Describe the solution you'd like we could :

Describe alternatives you've considered I don't really know how to develop with vue.js and compile this sources, but I figured out this workaround :

Additional context it is not a cpu problem, my hosting server is ok, it's really a bandwidth problem, which is felt more from internet than locally.

DGideas commented 2 months ago

Agree, I have lots of videos on a 100Mbps server with Nextcloud, and I observed very poor performance when previewing these videos. However, there is no problem when using the sharing link to view a single video file.

PS. I use this Nextcloud instance which only have 1 user

skjnldsv commented 2 months ago

Preload metadata should only load a few KB of video, I'm surprised that has such a big effect on your servers.

I have lots of videos on a 100Mbps server

Well, that would epxlain it, 100mbps is really low for a server serving videos :/

olaulau commented 2 months ago

Preload metadata should only load a few KB of video, I'm surprised that has such a big effect on your servers.

it does not load only metadata but the whole video

I have lots of videos on a 100Mbps server

Well, that would epxlain it, 100mbps is really low for a server serving videos :/

it's not a slow host if you have only one user. and I had same problem with a great host and a 700M uplink !

skjnldsv commented 2 months ago

Is any of you in Nextcloud 29 ?

skjnldsv commented 2 months ago

@olaulau what is the total size downloaded by your browser on the preloaded videos? For me it reaches maybe 1-2MB max :thinking:

olaulau commented 2 months ago

migrated to nextcloud hub 8 (29.0.3). still loading 3 different video files. when the video starts playing, browser has already loaded more that 100MB (cleared the network view and filtering only media type)

skjnldsv commented 2 months ago

100MB from videos other than the current one you mean?

olaulau commented 2 months ago

yes, filtering with current file shows only a third of total media transferred.