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

update components

This commit is contained in:
Luke Pulverenti 2016-11-12 20:53:51 -05:00
parent 19eef131c9
commit e95dc53708
2 changed files with 25 additions and 18 deletions

View file

@ -159,7 +159,7 @@ define(['browser'], function (browser) {
break;
case 'mpg':
case 'mpeg':
supported = browser.edgeUwp;
supported = browser.edgeUwp || browser.tizen;
break;
case '3gp':
case 'flv':
@ -492,6 +492,8 @@ define(['browser'], function (browser) {
profile.CodecProfiles = [];
var supportsSecondaryAudio = browser.tizen;
// Handle he-aac not supported
if (!videoTestElement.canPlayType('video/mp4; codecs="avc1.640029, mp4a.40.5"').replace(/no/, '')) {
profile.CodecProfiles.push({
@ -507,7 +509,24 @@ define(['browser'], function (browser) {
Condition: 'LessThanEqual',
Property: 'AudioBitrate',
Value: '128000'
},
}
]
});
if (!supportsSecondaryAudio) {
profile.CodecProfiles[profile.CodecProfiles.length - 1].Conditions.push({
Condition: 'Equals',
Property: 'IsSecondaryAudio',
Value: 'false',
IsRequired: 'false'
});
}
}
if (!supportsSecondaryAudio) {
profile.CodecProfiles.push({
Type: 'VideoAudio',
Conditions: [
{
Condition: 'Equals',
Property: 'IsSecondaryAudio',
@ -518,18 +537,6 @@ define(['browser'], function (browser) {
});
}
profile.CodecProfiles.push({
Type: 'VideoAudio',
Conditions: [
{
Condition: 'Equals',
Property: 'IsSecondaryAudio',
Value: 'false',
IsRequired: 'false'
}
]
});
var maxLevel = '41';
if (browser.chrome && !browser.mobile) {