From 762ea7f147b80936fa997891b82a18697a29a894 Mon Sep 17 00:00:00 2001 From: gnattu Date: Tue, 30 Apr 2024 18:46:48 +0800 Subject: [PATCH] Change check order to match the comment Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- 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 1dfb5ea717..dce9a02cb4 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -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'); }