mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
H264 52 Level available on NVIDIA Shield but not detected (#1237)
(cherry picked from commit faf76efdbd)
This commit is contained in:
1 parent
ec467db7ed
commit
a233314652
2 files changed
+7
No files matched your search
@@ -22,6 +22,8 @@ public class DeviceUtils {
|
||||
private static final String FIRE_TV_MODEL_GEN_1 = "AFTB";
|
||||
private static final String FIRE_TV_MODEL_GEN_2 = "AFTS";
|
||||
private static final String FIRE_TV_MODEL_GEN_3 = "AFTN";
|
||||
// Nvidia Shield TV Model
|
||||
private static final String SHIELD_TV_MODEL = "SHIELD Android TV";
|
||||
|
||||
public static boolean isChromecastWithGoogleTV() {
|
||||
return Build.MODEL.equals(CHROMECAST_GOOGLE_TV);
|
||||
@@ -39,6 +41,10 @@ public class DeviceUtils {
|
||||
return Build.MODEL.equals(FIRE_STICK_4K_MODEL);
|
||||
}
|
||||
|
||||
public static boolean isShieldTv() {
|
||||
return Build.MODEL.equals(SHIELD_TV_MODEL);
|
||||
}
|
||||
|
||||
public static boolean has4kVideoSupport() {
|
||||
return !Arrays.asList(
|
||||
// These devices only support a max video resolution of 1080p
|
||||
|
||||
@@ -74,6 +74,7 @@ object ProfileHelper {
|
||||
// https://developer.amazon.com/docs/fire-tv/device-specifications.html
|
||||
DeviceUtils.isFireTvStick4k() -> H264_LEVEL_5_2
|
||||
DeviceUtils.isFireTv() -> H264_LEVEL_4_1
|
||||
DeviceUtils.isShieldTv() -> H264_LEVEL_5_2
|
||||
else -> H264_LEVEL_5_1
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user