Add options.supportsMp3InTs to allow client override

This commit is contained in:
gnattu
2024-04-26 22:24:05 +08:00
parent 7f27baf183
commit adf6530650
+1 -1
View File
@@ -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');
}