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:
parent
1e068b4247
commit
5e64aeba54
1 changed files with 6 additions and 6 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue