1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use single audio policy

This commit is contained in:
Dmitry Lyzo 2024-02-21 20:56:03 +03:00
parent ec8763c1e4
commit 39a45df287

View file

@ -923,6 +923,15 @@ export default function (options) {
Value: 'false',
IsRequired: false
});
if (browser.firefox || browser.tizen || browser.web0s) {
profile.SingleAudioPolicy = 'FirstSupported';
} else if (browser.chrome) {
// Chrome 115+ detects only default audio tracks - BROKEN
profile.SingleAudioPolicy = browser.versionMajor >= 115 ? 'DefaultSupported' : 'FirstSupported';
} else {
profile.SingleAudioPolicy = 'First';
}
}
if (globalAudioCodecProfileConditions.length) {