mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
fixes #1290 - upgrade audio formats
This commit is contained in:
parent
6361f4bf1b
commit
61f0d833ae
@ -129,7 +129,6 @@
|
|||||||
var canPlayAc3 = supportedFormats.indexOf('ac3') != -1;
|
var canPlayAc3 = supportedFormats.indexOf('ac3') != -1;
|
||||||
var canPlayAac = supportedFormats.indexOf('aac') != -1;
|
var canPlayAac = supportedFormats.indexOf('aac') != -1;
|
||||||
var canPlayMp3 = supportedFormats.indexOf('mp3') != -1;
|
var canPlayMp3 = supportedFormats.indexOf('mp3') != -1;
|
||||||
var canPlayOpus = supportedFormats.indexOf('opus') != -1;
|
|
||||||
var canPlayMkv = supportedFormats.indexOf('mkv') != -1;
|
var canPlayMkv = supportedFormats.indexOf('mkv') != -1;
|
||||||
|
|
||||||
var profile = {};
|
var profile = {};
|
||||||
@ -1900,7 +1899,8 @@
|
|||||||
if (document.createElement('audio').canPlayType('audio/mp3').replace(/no/, '')) {
|
if (document.createElement('audio').canPlayType('audio/mp3').replace(/no/, '')) {
|
||||||
list.push('mp3');
|
list.push('mp3');
|
||||||
}
|
}
|
||||||
if (document.createElement('audio').canPlayType('audio/opus').replace(/no/, '')) {
|
|
||||||
|
if (document.createElement('audio').canPlayType('audio/ogg; codecs="opus"').replace(/no/, '')) {
|
||||||
list.push('opus');
|
list.push('opus');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user