From c60eff507bc11e20c759e7ecc90fb40581fce787 Mon Sep 17 00:00:00 2001 From: Nyanmisaka Date: Tue, 28 Jan 2020 01:04:52 +0800 Subject: [PATCH] Update browserdeviceprofile.js --- src/scripts/browserdeviceprofile.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/scripts/browserdeviceprofile.js b/src/scripts/browserdeviceprofile.js index 0acec24aea..db079b759a 100644 --- a/src/scripts/browserdeviceprofile.js +++ b/src/scripts/browserdeviceprofile.js @@ -749,7 +749,7 @@ define(['browser'], function (browser) { }); } - var maxH264Level = browser.chromecast ? 42 : 51; + var maxH264Level = 42; var h264Profiles = 'high|main|baseline|constrained baseline'; if (browser.tizen || browser.orsay || browser.web0s || @@ -757,14 +757,6 @@ define(['browser'], function (browser) { maxH264Level = 51; } - var userAgent = navigator.userAgent.toLowerCase(); - if (browser.chromecast) { - var isChromecastUltra = userAgent.indexOf('aarch64') !== -1; - if (isChromecastUltra) { - maxH264Level = 51; - } - } - if (browser.tizen || browser.orsay || videoTestElement.canPlayType('video/mp4; codecs="avc1.6e0033"').replace(/no/, '')) {