Skip to content

Commit

Permalink
H264 52 Level available on NVIDIA Shield but not detected (#1237)
Browse files Browse the repository at this point in the history
(cherry picked from commit faf76ef)
  • Loading branch information
Jellifi007 authored and nielsvanvelzen committed Nov 4, 2021
1 parent ec467db commit a233314
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -39,6 +41,10 @@ public static boolean isFireTvStick4k() {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
)
Expand Down

0 comments on commit a233314

Please sign in to comment.