• 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 General Questions Save or Permanently Set Playback Settings

     
    • 0 Vote(s) - 0 Average

    Save or Permanently Set Playback Settings

    Is there a way to save or permanently set playback settings ?
    pcm
    Offline

    Member

    Posts: 62
    Threads: 4
    Joined: 2024 May
    Reputation: 0
    Country:Uzbekistan
    #1
    2024-06-21, 04:33 AM (This post was last modified: 2024-06-21, 04:34 AM by pcm. Edited 1 time in total.)
    For the web-client, is there any way I can configure my videoplayer playback settings ? 

    For example can I permanently set "Repeat mode" to "Repeat All" or "Aspect Ratio" to "Cover" ? 
    [Image: Screenshot-2024-06-21-at-12-34-01-AM.png]

    Currently, if I exit the Video, these reset to default values of "Repeat mode" : "None" and "Aspect Ratio" : "Auto". 

    Wish there was a to set my preferred values for these in advanced or atleast for Jellyfin make remember my last used playback configuration.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-06-21, 02:55 PM
    AFAIK, those particular settings cannot be permanently changed.
    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]
    1
    pcm
    Offline

    Member

    Posts: 62
    Threads: 4
    Joined: 2024 May
    Reputation: 0
    Country:Uzbekistan
    #3
    2024-06-21, 06:29 PM (This post was last modified: 2024-06-21, 06:36 PM by pcm. Edited 5 times in total.)
    Yeah, after digging into this, I can confirm that these settings are hardcoded. Slightly-frowning-face

    I was however able to figure out where to go to make permanent changes to these hardcoded values.

    If anyone is interested ...
    1. The aspect-ratio options is buried here

    You'd want to change that value from
    Code:
            return this._currentAspectRatio || 'auto';

    to
    Code:
            return this._currentAspectRatio || 'cover';


    or 
    Code:
            return this._currentAspectRatio || 'fill';

    2. The RepeatMode is located here and here

    You'd want to change *both occurrences* of
    Code:
    this._repeatMode = 'RepeatNone';
    to
    Code:
    this._repeatMode = 'RepeatAll';
     or
    Code:
    this._repeatMode = 'RepeatOne';
    , whatever you'd prefer.

    Ofcourse it's not as simple as finding these files in your installation and replacing these values, because when the jellyfin-web project is packaged for deployment, it gets bundled and minified. But, thank God for grep!!

    I was able to figure out where these are found in jellyfin web installation.
    * You'd want to head over to your web directory. In Linux it's at /usr/share/jellyfin/web/

    * AspectRatio is found in htmlVideoPlayer-plugin.{your-build-id-string}.chunk.js file and
    * RepeatMode is found in main.jellyfin.bundle.js file in your web installation.


    Ofcourse one HUGE CAVEAT is that these things may be subject to change at anytime in a future update.

    This is only a cheap hack and is fragile. So, I am not super happy about this. But, it's the best I can do to get jellyfin-web to do what I want it to do.

    Ideally, it would be cool if this was a setting I could configure (in display setting or something)
    « 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