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

@ -309,7 +309,8 @@ function getAudioStreamUrl(item, transcodingProfile, directPlayContainers, apiCl
PlaySessionId: startingPlaySession,
StartTimeTicks: startPosition || 0,
EnableRedirection: true,
EnableRemoteMedia: appHost.supports('remoteaudio')
EnableRemoteMedia: appHost.supports('remoteaudio'),
EnableAudioVbrEncoding: transcodingProfile.EnableAudioVbrEncoding
});
}

View file

@ -190,6 +190,9 @@ function loadForm(context, user, userSettings, systemInfo, apiClient) {
context.querySelector('.chkLimitSupportedVideoResolution').checked = appSettings.limitSupportedVideoResolution();
context.querySelector('#selectPreferredTranscodeVideoCodec').value = appSettings.preferredTranscodeVideoCodec();
context.querySelector('#selectPreferredTranscodeVideoAudioCodec').value = appSettings.preferredTranscodeVideoAudioCodec();
context.querySelector('.chkDisableVbrAudioEncoding').checked = appSettings.disableVbrAudio();
context.querySelector('.chkAlwaysRemuxFlac').checked = appSettings.alwaysRemuxFlac();
context.querySelector('.chkAlwaysRemuxMp3').checked = appSettings.alwaysRemuxMp3();
setMaxBitrateIntoField(context.querySelector('.selectVideoInNetworkQuality'), true, 'Video');
setMaxBitrateIntoField(context.querySelector('.selectVideoInternetQuality'), false, 'Video');
@ -232,6 +235,9 @@ function saveUser(context, user, userSettingsInstance, apiClient) {
appSettings.enableTrueHd(context.querySelector('.chkEnableTrueHd').checked);
appSettings.enableHi10p(context.querySelector('.chkEnableHi10p').checked);
appSettings.disableVbrAudio(context.querySelector('.chkDisableVbrAudioEncoding').checked);
appSettings.alwaysRemuxFlac(context.querySelector('.chkAlwaysRemuxFlac').checked);
appSettings.alwaysRemuxMp3(context.querySelector('.chkAlwaysRemuxMp3').checked);
setMaxBitrateFromField(context.querySelector('.selectVideoInNetworkQuality'), true, 'Video');
setMaxBitrateFromField(context.querySelector('.selectVideoInternetQuality'), false, 'Video');

View file

@ -22,6 +22,14 @@
<input type="checkbox" is="emby-checkbox" class="chkPlayDefaultAudioTrack" />
<span>${LabelPlayDefaultAudioTrack}</span>
</label>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkDisableVbrAudioEncoding" />
<span>${LabelDisableVbrAudioEncoding}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${DisableVbrAudioEncodingHelp}</div>
</div>
</div>
<div class="qualitySections hide">
@ -212,6 +220,28 @@
</div>
</div>
<div class="verticalSection verticalSection-extrabottompadding">
<h2 class="sectionTitle">
${HeaderAudioAdvanced}
</h2>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkAlwaysRemuxFlac" />
<span>${LabelAlwaysRemuxFlacAudioFiles}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${AlwaysRemuxFlacAudioFilesHelp}</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkAlwaysRemuxMp3" />
<span>${LabelAlwaysRemuxMp3AudioFiles}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${AlwaysRemuxMp3AudioFilesHelp}</div>
</div>
</div>
<button is="emby-button" type="submit" class="raised button-submit block btnSave hide">
<span>${Save}</span>
</button>