1
0
Fork 0
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:
Dmitry Lyzo 2022-02-15 18:45:01 +03:00
parent ed6de5232a
commit c58d8b86ab

View file

@ -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;
}