1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

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

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');
}