From adf6530650e5c98e8e2559218cd4b8f3b66d9b3c Mon Sep 17 00:00:00 2001 From: gnattu Date: Fri, 26 Apr 2024 22:24:05 +0800 Subject: [PATCH] Add options.supportsMp3InTs to allow client override --- src/scripts/browserDeviceProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 53bb1451da..a060ce3a4d 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -488,7 +488,7 @@ export default function (options) { // Safari is the only browser that supports mp3 with HLS, but only in mpegts container. // The detect function will return false on Safari, which reflects the fmp4 support, so we have to hard-code it here. - if (browser.safari || canPlayMp3VideoAudioInHls) { + if (browser.safari || canPlayMp3VideoAudioInHls || options.supportsMp3InTs) { hlsInTsVideoAudioCodecs.push('mp3'); }