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. 
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
to
or
2. The RepeatMode is located here and here
You'd want to change *both occurrences* of to or , 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
* AspectRatio is found in
* RepeatMode is found in
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)

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';
Code:
this._repeatMode = 'RepeatAll';
Code:
this._repeatMode = 'RepeatOne';
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)