Skip to content

Commit

Permalink
fix: Orange set top box is incorrectly categorized as Apple (#5545)
Browse files Browse the repository at this point in the history
This PR adds an Orange platform check and excludes Orange from the
isApple() check.

Resolves: #5544

---------

Co-authored-by: Dan Sparacio <[email protected]>
Co-authored-by: Casey Occhialini <[email protected]>
  • Loading branch information
3 people authored and joeyparrish committed Aug 30, 2023
1 parent 6ec0450 commit 31f7a18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/util/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ shaka.util.Platform = class {
!shaka.util.Platform.isTizen() &&
!shaka.util.Platform.isEOS() &&
!shaka.util.Platform.isVirginMedia() &&
!shaka.util.Platform.isOrange() &&
!shaka.util.Platform.isPS4() &&
!shaka.util.Platform.isAmazonFireTV();
}
Expand Down Expand Up @@ -253,6 +254,13 @@ shaka.util.Platform = class {
return shaka.util.Platform.userAgentContains_('VirginMedia');
}

/**
* Check if the current platform is Orange.
*/
static isOrange() {
return shaka.util.Platform.userAgentContains_('SOPOpenBrowser');
}

/**
* Check if the current platform is Amazon Fire TV.
* https://developer.amazon.com/docs/fire-tv/identify-amazon-fire-tv-devices.html
Expand Down

0 comments on commit 31f7a18

Please sign in to comment.