diff --git a/lib/util/platform.js b/lib/util/platform.js index 2976163649..65ec3b01c4 100644 --- a/lib/util/platform.js +++ b/lib/util/platform.js @@ -199,7 +199,8 @@ shaka.util.Platform = class { return !!navigator.vendor && navigator.vendor.includes('Apple') && !shaka.util.Platform.isTizen() && !shaka.util.Platform.isEOS() && - !shaka.util.Platform.isPS4(); + !shaka.util.Platform.isPS4() && + !shaka.util.Platform.isAmazonFireTV(); } /** @@ -222,6 +223,16 @@ shaka.util.Platform = class { return shaka.util.Platform.userAgentContains_('PlayStation 4'); } + /** + * Check if the current platform is Amazon Fire TV. + * https://developer.amazon.com/docs/fire-tv/identify-amazon-fire-tv-devices.html + * + * @return {boolean} + */ + static isAmazonFireTV() { + return shaka.util.Platform.userAgentContains_('AFT'); + } + /** * Returns a major version number for Safari, or Safari-based iOS browsers. *