Backport pull request #4688 from jellyfin/release-10.8.z

Disable ALAC on MacOS in non-Safari browsers

Original-merge: 6304e27940e59d41ba9de41f9f0d5da7392cffbb

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Dmitry Lyzo 2023-07-02 02:12:45 -04:00 committed by Bill Thornton
parent ba0acc6b04
commit 942926058b

View file

@ -121,7 +121,7 @@ function canPlayAudioFormat(format) {
typeString = 'audio/ogg; codecs="opus"'; typeString = 'audio/ogg; codecs="opus"';
} else if (format === 'alac') { } else if (format === 'alac') {
if (browser.iOS || browser.osx) { if (browser.iOS || browser.osx && browser.safari) {
return true; return true;
} }
} else if (format === 'mp2') { } else if (format === 'mp2') {