Skip to content

Commit

Permalink
Add Google Chromecast HD limitation (jellyfin#3820)
Browse files Browse the repository at this point in the history
* Add identification for Google Chromecast HD

Possibly an upstream bug is preventing this from working, as the chromecast is being idenitified correctly in debugging.

* Update DeviceUtils.kt

Added a note for the reason of the change.

* Removed unintentional imports

* Update app/src/main/java/org/jellyfin/androidtv/util/DeviceUtils.kt

Make changes suggested by maintainer.

Co-authored-by: Niels van Velzen <[email protected]>

* Update DeviceUtils.kt

Removed unneeded isChromecastHD

---------

Co-authored-by: Niels van Velzen <[email protected]>
  • Loading branch information
majmongoose and nielsvanvelzen authored Aug 5, 2024
1 parent 4f3c6b3 commit a8c9f05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [sparky3387](https://github.com/sparky3387)
- [mohd-akram](https://github.com/mohd-akram)
- [3l0w](https://github.com/3l0w)
- [MajMongoose](https://github.com/majmongoose)

# Emby Contributors

Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/org/jellyfin/androidtv/util/DeviceUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ object DeviceUtils {
// Nvidia Shield TV Model
private const val SHIELD_TV_MODEL = "SHIELD Android TV"

// Google Chromecast HD Model
private const val GOOGLE_CHROMECAST_HD_MODEL = "Chromecast HD"

@JvmStatic
val isFireTv: Boolean = Build.MODEL.startsWith(FIRE_TV_PREFIX)

Expand Down Expand Up @@ -53,6 +56,7 @@ object DeviceUtils {
FIRE_STICK_MODEL_GEN_3,
FIRE_STICK_LITE_MODEL,
FIRE_TV_MODEL_GEN_1,
FIRE_TV_MODEL_GEN_2
FIRE_TV_MODEL_GEN_2,
GOOGLE_CHROMECAST_HD_MODEL
)
}

0 comments on commit a8c9f05

Please sign in to comment.