From 39a45df287537480d7de456469778ce7a76368f4 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Wed, 21 Feb 2024 20:56:03 +0300 Subject: [PATCH] Use single audio policy --- src/scripts/browserDeviceProfile.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index dd438d6fce..a7bc134e7e 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -923,6 +923,15 @@ export default function (options) { Value: 'false', IsRequired: false }); + + if (browser.firefox || browser.tizen || browser.web0s) { + profile.SingleAudioPolicy = 'FirstSupported'; + } else if (browser.chrome) { + // Chrome 115+ detects only default audio tracks - BROKEN + profile.SingleAudioPolicy = browser.versionMajor >= 115 ? 'DefaultSupported' : 'FirstSupported'; + } else { + profile.SingleAudioPolicy = 'First'; + } } if (globalAudioCodecProfileConditions.length) {