From 6195e119221e46ef7e21de1afc2768a75eb83017 Mon Sep 17 00:00:00 2001 From: gnattu Date: Wed, 21 Aug 2024 04:50:18 +0800 Subject: [PATCH] Use else if just in case safari changed behavior in future --- src/scripts/browserDeviceProfile.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 1270004854..e1626c8dfc 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -582,9 +582,7 @@ export default function (options) { hlsInTsVideoAudioCodecs.push('opus'); } hlsInFmp4VideoAudioCodecs.push('opus'); - } - - if (safariSupportsOpus) { + } else if (safariSupportsOpus) { videoAudioCodecs.push('opus'); webmAudioCodecs.push('opus'); hlsInFmp4VideoAudioCodecs.push('opus');