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

Hide hls segment setting initially but show it for WebOS users.

This commit is contained in:
Patrick Davis 2025-02-17 14:21:49 +00:00
parent e3ae5d3632
commit d46b7f256c
2 changed files with 6 additions and 1 deletions

View file

@ -190,6 +190,11 @@ function loadForm(context, user, userSettings, systemInfo, apiClient) {
context.querySelector('.fldEnableHi10p').classList.remove('hide'); context.querySelector('.fldEnableHi10p').classList.remove('hide');
} }
//Show hls segment length setting for Web0s only, as the setting only aims to fix an issue on that platform.
if (browser.isWeb0s) {
context.querySelector('.fldLimitSegmentLength').classList.remove('hide');
}
context.querySelector('#selectAllowedAudioChannels').value = userSettings.allowedAudioChannels(); context.querySelector('#selectAllowedAudioChannels').value = userSettings.allowedAudioChannels();
apiClient.getCultures().then(allCultures => { apiClient.getCultures().then(allCultures => {

View file

@ -190,7 +190,7 @@
<div class="fieldDescription checkboxFieldDescription">${EnableHi10pHelp}</div> <div class="fieldDescription checkboxFieldDescription">${EnableHi10pHelp}</div>
</div> </div>
<div class="checkboxContainer checkboxContainer-withDescription"> <div class="checkboxContainer checkboxContainer-withDescription fldLimitSegmentLength hide">
<label> <label>
<input type="checkbox" is="emby-checkbox" class="chkLimitSegmentLength" /> <input type="checkbox" is="emby-checkbox" class="chkLimitSegmentLength" />
<span>${LimitSegmentLength}</span> <span>${LimitSegmentLength}</span>