Skip to content

Commit

Permalink
fix: Fix MediaCapabilities polyfill on Tizen and WebOS (shaka-project…
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván authored Aug 10, 2022
1 parent 25fd4f4 commit eb2aed8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/polyfill/media_capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ shaka.polyfill.MediaCapabilities = class {
// Browsers.
// Since MediaCapabilities implementation does not exist in PS4 browsers, we
// should always install polyfill.
// Since MediaCapabilities implementation is buggy in Tizen browsers, we
// should always install polyfill for Tizen browsers.
// Since MediaCapabilities implementation is buggy in WebOS browsers, we
// should always install polyfill for WebOS browsers.
let canUseNativeMCap = true;
if (shaka.util.Platform.isApple() ||
shaka.util.Platform.isPS5() ||
shaka.util.Platform.isPS4() ||
shaka.util.Platform.isWebOS() ||
shaka.util.Platform.isTizen() ||
shaka.util.Platform.isChromecast()) {
canUseNativeMCap = false;
}
Expand Down

0 comments on commit eb2aed8

Please sign in to comment.