• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Increase Buffer Size of Jellyfin-Web

     
    • 0 Vote(s) - 0 Average

    Increase Buffer Size of Jellyfin-Web

    Sapd
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2023 Jul
    Reputation: 0
    Country:Germany
    #1
    2024-01-22, 12:01 PM
    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-22, 03:25 PM
    Here in 10.8?

    https://github.com/jellyfin/jellyfin-web...in.js#L411

    Here in unstable?

    https://github.com/jellyfin/jellyfin-web...in.js#L114
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Sapd
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2023 Jul
    Reputation: 0
    Country:Germany
    #3
    2024-01-22, 04:08 PM
    (2024-01-22, 03:25 PM)TheDreadPirate Wrote: Here in 10.8?

    https://github.com/jellyfin/jellyfin-web...in.js#L411

    Here in unstable?

    https://github.com/jellyfin/jellyfin-web...in.js#L114

    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]
    [color=#000000]
    [/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?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-22, 06:21 PM
    No idea. I'm not a dev.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Sapd
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2023 Jul
    Reputation: 0
    Country:Germany
    #5
    2024-01-22, 07:52 PM
    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$ {
            proxy_pass http://jellyfin;
            proxy_set_header Accept-Encoding "";
            sub_filter_types *;
            sub_filter 'return s=30' 'return s=600';
            sub_filter 'maxBufferLength:s' 'maxBufferLength:s,maxBufferSize:180000000';
            sub_filter_once on;
        }
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode