diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 217518133c..3ce60cfe7a 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -518,21 +518,14 @@ define(['browser'], function (browser) { }); ['opus', 'mp3', 'mp2', 'aac', 'flac', 'alac', 'webma', 'wma', 'wav', 'ogg', 'oga'].filter(canPlayAudioFormat).forEach(function (audioFormat) { - if (audioFormat === 'mp2') { + profile.DirectPlayProfiles.push({ + Container: audioFormat, + Type: 'Audio' + }); + + if (audioFormat === 'webma') { profile.DirectPlayProfiles.push({ - Container: 'mp2,mp3', - Type: 'Audio', - AudioCodec: audioFormat - }); - } else if (audioFormat === 'mp3') { - profile.DirectPlayProfiles.push({ - Container: audioFormat, - Type: 'Audio', - AudioCodec: audioFormat - }); - } else { - profile.DirectPlayProfiles.push({ - Container: audioFormat === 'webma' ? 'webma,webm' : audioFormat, + Container: 'webm', Type: 'Audio' }); } @@ -541,7 +534,6 @@ define(['browser'], function (browser) { if (audioFormat === 'aac' || audioFormat === 'alac') { profile.DirectPlayProfiles.push({ Container: 'm4a,m4b', - AudioCodec: audioFormat, Type: 'Audio' }); }