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:
parent
ec8763c1e4
commit
39a45df287
1 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue