• 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
    #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)


    Messages In This Thread
    Save or Permanently Set Playback Settings - by pcm - 2024-06-21, 04:33 AM
    RE: Save or Permanently Set Playback Settings - by TheDreadPirate - 2024-06-21, 02:55 PM
    RE: Save or Permanently Set Playback Settings - by pcm - 2024-06-21, 06:29 PM

    • 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