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

fix: fix Chrome 115+ doesn't see other than default audio tracks

This commit is contained in:
Dmitry Lyzo 2024-02-28 19:30:09 +03:00
parent 39a45df287
commit 2d1276e4ed

View file

@ -924,16 +924,24 @@ export default function (options) {
IsRequired: false
});
if (browser.firefox || browser.tizen || browser.web0s) {
// FIXME: Most likely, it is always `FirstSupported`
if (browser.chrome || 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 (browser.chrome && browser.versionMajor >= 115) {
// Chrome 115+ detects only default audio tracks - BROKEN
globalVideoAudioCodecProfileConditions.push({
Condition: 'Equals',
Property: 'IsDefaultTrack',
Value: 'true',
IsRequired: false
});
}
if (globalAudioCodecProfileConditions.length) {
profile.CodecProfiles.push({
Type: 'Audio',