Skip to content

Commit

Permalink
chore(player): only perform safari version check for non-Fire TV plat…
Browse files Browse the repository at this point in the history
…forms
  • Loading branch information
subhanahmed047 committed Jul 26, 2022
1 parent ed73d4b commit cef116a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cef116a

Please sign in to comment.