Update device profile for Jellyfin 10.11 (#293)

## Details

This PR updates the device profile used by ExoPlayer. It should more
accurately report support for HDR formats.

## Acknowledgements
This PR contains a commit (cd6351912af72d274b0baf50af4d777b986f0f46)
that has code copied and slightly modified from
https://github.com/jellyfin/jellyfin-androidtv `v0.19.4`.

Major acknowledgement & credit to the Jellyfin Android TV developers for
this code!

## Issues
Related to #15
This commit is contained in:
damontecres 2025-11-21 20:16:49 -05:00 committed by GitHub
parent ec852906b1
commit 20ab146c97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 472 additions and 150 deletions

View file

@ -120,11 +120,6 @@ class MainActivity : AppCompatActivity() {
userDto?.configuration ?: DefaultUserConfiguration,
)
val deviceProfile =
remember(appPreferences) {
createDeviceProfile(this@MainActivity, preferences, false)
}
if (isRestoringSession) {
Box(
modifier = Modifier.size(200.dp),
@ -154,6 +149,14 @@ class MainActivity : AppCompatActivity() {
}
}
}
val deviceProfile =
remember(server, appPreferences) {
createDeviceProfile(
this@MainActivity,
preferences,
server?.serverVersion,
)
}
ApplicationContent(
user = user,
server = server,