Change check order to match the comment

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
gnattu
2024-04-30 18:46:48 +08:00
committed by GitHub
parent 70c8b439b1
commit 762ea7f147
+1 -1
View File
@@ -487,7 +487,7 @@ export default function (options) {
}
// Safari supports mp3 with HLS, but only in mpegts container, and the supportsMp3VideoAudio will return false.
if (!browser.ps4 && (browser.safari || supportsMp3VideoAudio)) {
if (browser.safari || (supportsMp3VideoAudio && !browser.ps4)) {
hlsInTsVideoAudioCodecs.push('mp3');
}