When subtitle format is SAMI, mediaStream.codec returns "sami".
But "sami" is not defined in CodecHelpers.getSubtitleMimeType, so that function returns null.
Since Jellyfin server is converting SAMI subtitle to Subrip format before sending to client, a quick and dirty solution would be defining "sami" as MimeTypes.APPLICATION_SUBRIP.
Describe the bug
The subtitle does not show on Exoplayer and External Player when external subtitle format is SAMI(.smi, .sami).
https://github.com/jellyfin/jellyfin-android/blob/f1f789946968789897ab5e5941b94d5f03dcb373/app/src/main/java/org/jellyfin/mobile/player/source/JellyfinMediaSource.kt#L89-L92
When subtitle format is SAMI, mediaStream.codec returns "sami". But "sami" is not defined in CodecHelpers.getSubtitleMimeType, so that function returns null.
https://github.com/jellyfin/jellyfin-android/blob/f1f789946968789897ab5e5941b94d5f03dcb373/app/src/main/java/org/jellyfin/mobile/player/deviceprofile/CodecHelpers.kt#L243-L254
Since Jellyfin server is converting SAMI subtitle to Subrip format before sending to client, a quick and dirty solution would be defining "sami" as MimeTypes.APPLICATION_SUBRIP.
Logs
No response
Application version
2.6.1
Where did you install the app from?
Google Play
Device information
Galaxy S23 Ultra
Android version
Android 14, One UI 6.1
Jellyfin server version
10.9.0
Which video player implementations does this bug apply to?