Skip to content

Commit

Permalink
fix: Enable SMOOTH codec switching on Fuchsia cast devices (#6609)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed May 17, 2024
1 parent 232437b commit 4f58aad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/util/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ shaka.util.Platform = class {
}

/**
* Check if the current platform is a Google Chromecast with Android
* (i.e. Chromecast with GoogleTV).
* Check if the current platform is a Google Chromecast with Fuchsia
* (i.e. Google Nest Hub).
*
* @return {boolean}
*/
Expand Down Expand Up @@ -594,7 +594,8 @@ shaka.util.Platform = class {
return false;
}
// Older chromecasts without GoogleTV seem to not support SMOOTH properly.
if (Platform.isChromecast() && !Platform.isAndroidCastDevice()) {
if (Platform.isChromecast() && !Platform.isAndroidCastDevice() &&
!Platform.isFuchsiaCastDevice()) {
return false;
}
// See: https://chromium-review.googlesource.com/c/chromium/src/+/4577759
Expand Down

0 comments on commit 4f58aad

Please sign in to comment.