mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
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:
parent
ec852906b1
commit
20ab146c97
10 changed files with 472 additions and 150 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue