Use else if just in case safari changed behavior in future

This commit is contained in:
gnattu
2024-08-21 04:50:18 +08:00
parent 0e985c2ffe
commit 6195e11922

View File

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