Describe the bug
Since the new subtitle handling implementation I noticed that I have to keep adjusting the subtitle size and it is mostly related to the aspect ratio of the media.
I did a quick check in the codebase and I think the issue is in the following line:
mExoPlayerView.getSubtitleView().setFractionalTextSize(0.0533f * userPreferences.get(UserPreferences.Companion.getSubtitlesTextSize()));
From the documentation of setFractionalTextSize:
fun setFractionalTextSize(fractionOfHeight: Float): Unit
- Sets the text size to be a fraction of the view's remaining height after its top and bottom padding have been subtracted
My understanding from this is that the when the media height changes the subtitle size will be different. Using a constant here to calculate the text size may not be the solution.
Logs
No response
Application version
0.18.2
Where did you install the app from?
None
Device information
CCwGTV
Android version
Android TV 12
Jellyfin server version
10.10.3
Describe the bug
Since the new subtitle handling implementation I noticed that I have to keep adjusting the subtitle size and it is mostly related to the aspect ratio of the media.
I did a quick check in the codebase and I think the issue is in the following line:
mExoPlayerView.getSubtitleView().setFractionalTextSize(0.0533f * userPreferences.get(UserPreferences.Companion.getSubtitlesTextSize()));
From the documentation of setFractionalTextSize:
fun setFractionalTextSize(fractionOfHeight: Float): Unit
My understanding from this is that the when the media height changes the subtitle size will be different. Using a constant here to calculate the text size may not be the solution.
Logs
No response
Application version
0.18.2
Where did you install the app from?
None
Device information
CCwGTV
Android version
Android TV 12
Jellyfin server version
10.10.3