mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Don't ignore webOS when checking OPUS support
This commit is contained in:
parent
ed6de5232a
commit
c58d8b86ab
1 changed files with 2 additions and 7 deletions
|
@ -123,12 +123,7 @@ import browser from './browser';
|
|||
return true;
|
||||
}
|
||||
} else if (format === 'opus') {
|
||||
if (!browser.web0s) {
|
||||
typeString = 'audio/ogg; codecs="opus"';
|
||||
return !!document.createElement('audio').canPlayType(typeString).replace(/no/, '');
|
||||
}
|
||||
|
||||
return false;
|
||||
typeString = 'audio/ogg; codecs="opus"';
|
||||
} else if (format === 'alac') {
|
||||
if (browser.iOS || browser.osx) {
|
||||
return true;
|
||||
|
@ -142,7 +137,7 @@ import browser from './browser';
|
|||
typeString = 'audio/webm';
|
||||
} else if (format === 'mp2') {
|
||||
typeString = 'audio/mpeg';
|
||||
} else {
|
||||
} else if (!typeString) {
|
||||
typeString = 'audio/' + format;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue