![]() |
Increase Buffer Size of Jellyfin-Web - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Increase Buffer Size of Jellyfin-Web (/t-increase-buffer-size-of-jellyfin-web) |
Increase Buffer Size of Jellyfin-Web - Sapd - 2024-01-22 Hello, I wanted to ask if someone knows a way to increase the amount the clients (in Jellyfin Web) are pre-loading when watching something (maybe by modifying some parameter in the jellyfin-web source?). I am not talking about transcoding (it affects transcoding and direct play in the same way). Reason is, that I want to trade-off consuming more traffic for a more stable experience. So that even when you are on a mobile connection or unstable Internet, that it will buffer around 3 minutes - maybe even more. So a downtime of around that time should not affect playability. RE: Increase Buffer Size of Jellyfin-Web - TheDreadPirate - 2024-01-22 Here in 10.8? https://github.com/jellyfin/jellyfin-web/blob/release-10.8.z/src/plugins/htmlVideoPlayer/plugin.js#L411 Here in unstable? https://github.com/jellyfin/jellyfin-web/blob/e75cc0413e4661fb38657f3c007d0087ea3848ae/src/plugins/htmlVideoPlayer/plugin.js#L114 RE: Increase Buffer Size of Jellyfin-Web - Sapd - 2024-01-22 (2024-01-22, 03:25 PM)TheDreadPirate Wrote: Here in 10.8? Thank you for the pointer. I just found it in the bundle like this: Code: [color=#000000]Hls({manifestLoadingTimeOut:2e4,maxBufferLength:s,xhrSetup:function(e){[/color] So I should be able to overwrite it with a simple regex and NGINX replace module. Do you know by change if it affects only HLS playback or also direct play? RE: Increase Buffer Size of Jellyfin-Web - TheDreadPirate - 2024-01-22 No idea. I'm not a dev. RE: Increase Buffer Size of Jellyfin-Web - Sapd - 2024-01-22 For someone searching: I experimented a bit and this seems to increase it (however the browser will still limit it). The Browser cache has to be deleted for an effect: Code: location ~ ^/web/htmlVideoPlayer-plugin.[0-9a-z]+.chunk.js$ { |