From 31f7a18bacb51d176f1d7def5e1965b9e3a0e5fa Mon Sep 17 00:00:00 2001 From: Will Harris Date: Mon, 28 Aug 2023 13:04:57 -0400 Subject: [PATCH] fix: Orange set top box is incorrectly categorized as Apple (#5545) This PR adds an Orange platform check and excludes Orange from the isApple() check. Resolves: https://github.com/shaka-project/shaka-player/issues/5544 --------- Co-authored-by: Dan Sparacio Co-authored-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com> --- lib/util/platform.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/util/platform.js b/lib/util/platform.js index 1866cb951f..1a4734e867 100644 --- a/lib/util/platform.js +++ b/lib/util/platform.js @@ -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(); } @@ -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