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:
parent
add01e332b
commit
1342bedad0
1 changed files with 18 additions and 0 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue