From cef116af7c7205a4561c14e951696ac67c73aead Mon Sep 17 00:00:00 2001 From: Subhan Ahmed Date: Tue, 26 Jul 2022 14:46:02 +1000 Subject: [PATCH] chore(player): only perform safari version check for non-Fire TV platforms --- lib/player.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/player.js b/lib/player.js index cf54c0cde04..9606e6863f0 100644 --- a/lib/player.js +++ b/lib/player.js @@ -878,8 +878,12 @@ shaka.Player = class extends shaka.util.FakeEventTarget { // We do not support iOS 9, 10, 11 or 12, nor those same versions of // desktop Safari. + // Only check for Safari version if the platform is not Amazon Fire TV + // because Fire TV devices have a `Version/4.0` in their user agents + // even though they run on a modern chrome version const safariVersion = shaka.util.Platform.safariVersion(); - if (safariVersion && safariVersion < 13) { + if (!shaka.util.Platform.isAmazonFireTV() && + safariVersion && safariVersion < 13) { return false; }