1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Update browserdeviceprofile.js

This commit is contained in:
Nyanmisaka 2020-01-28 01:04:52 +08:00 committed by GitHub
parent cb04a5aa91
commit c60eff507b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/, '')) {