diff --git a/lib/polyfill/media_capabilities.js b/lib/polyfill/media_capabilities.js index 4bb9073d77..a28c5add94 100644 --- a/lib/polyfill/media_capabilities.js +++ b/lib/polyfill/media_capabilities.js @@ -48,6 +48,8 @@ shaka.polyfill.MediaCapabilities = class { // should always install polyfill for WebOS browsers. // Since MediaCapabilities implementation is buggy in EOS browsers, we // should always install polyfill for EOS browsers. + // Since MediaCapabilities implementation is buggy in Hisense browsers, we + // should always install polyfill for Hisense browsers. let canUseNativeMCap = true; if (shaka.util.Platform.isApple() || shaka.util.Platform.isPS5() || @@ -55,7 +57,8 @@ shaka.polyfill.MediaCapabilities = class { shaka.util.Platform.isWebOS() || shaka.util.Platform.isTizen() || shaka.util.Platform.isChromecast() || - shaka.util.Platform.isEOS()) { + shaka.util.Platform.isEOS() || + shaka.util.Platform.isHisense()) { canUseNativeMCap = false; } if (canUseNativeMCap && navigator.mediaCapabilities) { diff --git a/lib/util/platform.js b/lib/util/platform.js index c7457542cf..adaff96353 100644 --- a/lib/util/platform.js +++ b/lib/util/platform.js @@ -238,6 +238,14 @@ shaka.util.Platform = class { return shaka.util.Platform.userAgentContains_('PlayStation 4'); } + /** + * Check if the current platform is Hisense. + */ + static isHisense() { + return shaka.util.Platform.userAgentContains_('Hisense') || + shaka.util.Platform.userAgentContains_('VIDAA'); + } + /** * Check if the current platform is Virgin Media device. */