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

Limit maximum FLAC channels to 2 on webOS

This commit is contained in:
Dmitry Lyzo 2024-05-05 21:09:52 +03:00 committed by Dmitry Lyzo
parent add01e332b
commit 1342bedad0

View file

@ -883,6 +883,24 @@ export default function (options) {
});
}
if (browser.web0s) {
const flacConditions = [
// webOS doesn't seem to support FLAC with more than 2 channels
{
Condition: 'LessThanEqual',
Property: 'AudioChannels',
Value: '2',
IsRequired: false
}
];
profile.CodecProfiles.push({
Type: 'VideoAudio',
Codec: 'flac',
Conditions: flacConditions
});
}
let maxH264Level = 42;
let h264Profiles = 'high|main|baseline|constrained baseline';