1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

use supported formats for webma detection

This commit is contained in:
Luke Pulverenti 2015-12-25 21:44:32 -05:00
parent 1e068b4247
commit 5e64aeba54

View file

@ -166,11 +166,11 @@
});
}
['opus', 'mp3', 'aac'].forEach(function(audioFormat){
['opus', 'mp3', 'aac', 'webma'].forEach(function(audioFormat){
if (supportedFormats.indexOf(audioFormat) != -1) {
profile.DirectPlayProfiles.push({
Container: audioFormat,
Container: audioFormat == 'webma' ? 'webma,webm' : audioFormat,
Type: 'Audio'
});
}
@ -190,10 +190,6 @@
Container: 'webm',
Type: 'Video'
});
profile.DirectPlayProfiles.push({
Container: 'webm,webma',
Type: 'Audio'
});
}
profile.TranscodingProfiles = [];
@ -1904,6 +1900,10 @@
list.push('opus');
}
if (document.createElement('audio').canPlayType('audio/webm').replace(/no/, '')) {
list.push('webma');
}
if (browserInfo.chrome) {
list.push('mkv');
}