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:
parent
39a45df287
commit
2d1276e4ed
1 changed files with 12 additions and 4 deletions
|
@ -924,16 +924,24 @@ export default function (options) {
|
||||||
IsRequired: false
|
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';
|
profile.SingleAudioPolicy = 'FirstSupported';
|
||||||
} else if (browser.chrome) {
|
|
||||||
// Chrome 115+ detects only default audio tracks - BROKEN
|
|
||||||
profile.SingleAudioPolicy = browser.versionMajor >= 115 ? 'DefaultSupported' : 'FirstSupported';
|
|
||||||
} else {
|
} else {
|
||||||
profile.SingleAudioPolicy = 'First';
|
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) {
|
if (globalAudioCodecProfileConditions.length) {
|
||||||
profile.CodecProfiles.push({
|
profile.CodecProfiles.push({
|
||||||
Type: 'Audio',
|
Type: 'Audio',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue