From 1fc5096a98896e5b63734c80f429c04db0d9d11f Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Wed, 19 May 2021 21:07:36 +0800 Subject: [PATCH] Remove OPUS from supported HLS audio formats OPUS is not a standard HLS audio format, it's not mentioned in Apple's HLS document. Remuxing/Direct Streaming films with OPUS audio to Android Chrome will result in no sound. Thus leave it only for DirectPlay and Tizen. --- src/scripts/browserDeviceProfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index e93f1bb351..d40bee1fe7 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -414,8 +414,10 @@ import browser from './browser'; if (canPlayAudioFormat('opus')) { videoAudioCodecs.push('opus'); - hlsInTsVideoAudioCodecs.push('opus'); webmAudioCodecs.push('opus'); + if (browser.tizen) { + hlsInTsVideoAudioCodecs.push('opus'); + } } if (canPlayAudioFormat('flac')) {