From 1342bedad0061366d63a3bd63d67757721c2431e Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sun, 5 May 2024 21:09:52 +0300 Subject: [PATCH] Limit maximum FLAC channels to 2 on webOS --- src/scripts/browserDeviceProfile.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 542b535f88..6c1550ef25 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -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';