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

Add audio options to workaround compatability problems

This commit is contained in:
gnattu 2024-08-29 09:49:00 +08:00
parent d4467424a0
commit e810ec3cd9
6 changed files with 99 additions and 6 deletions

View file

@ -738,10 +738,19 @@ export default function (options) {
});
}
profile.DirectPlayProfiles.push({
Container: audioFormat,
Type: 'Audio'
});
if (audioFormat === 'flac' && appSettings.alwaysRemuxFlac()) {
// force remux flac in fmp4. Clients not supporting this configuration should disable this option
profile.DirectPlayProfiles.push({
Container: 'mp4',
AudioCodec: 'flac',
Type: 'Audio'
});
} else if (audioFormat !== 'mp3' || !appSettings.alwaysRemuxMp3()) { // mp3 remux profile is already injected
profile.DirectPlayProfiles.push({
Container: audioFormat,
Type: 'Audio'
});
}
// https://www.webmproject.org/about/faq/
if (audioFormat === 'opus' || audioFormat === 'webma') {
@ -794,7 +803,8 @@ export default function (options) {
Protocol: 'hls',
MaxAudioChannels: physicalAudioChannels.toString(),
MinSegments: browser.iOS || browser.osx ? '2' : '1',
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames,
EnableAudioVbrEncoding: !appSettings.disableVbrAudio()
});
}