diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index d4b692dd6a..85089e6d0e 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -715,6 +715,17 @@ export default function (options) { }); ['opus', 'mp3', 'mp2', 'aac', 'flac', 'alac', 'webma', 'wma', 'wav', 'ogg', 'oga'].filter(canPlayAudioFormat).forEach(function (audioFormat) { + // Place container overrides before direct profile for remux container override + if (audioFormat == 'mp3' && !canPlayMp3VideoAudioInHls) { + // mp3 is a special case because it is allowed in hls-fmp4 on the server-side + // but not really supported in most browsers + profile.DirectPlayProfiles.push({ + Container: 'ts', + AudioCodec: 'mp3', + Type: 'Audio' + }); + } + profile.DirectPlayProfiles.push({ Container: audioFormat, Type: 'Audio'