From d46b7f256c7abcb2ca9d5aafadfb4b2f1492bb9f Mon Sep 17 00:00:00 2001 From: Patrick Davis Date: Mon, 17 Feb 2025 14:21:49 +0000 Subject: [PATCH] Hide hls segment setting initially but show it for WebOS users. --- src/components/playbackSettings/playbackSettings.js | 5 +++++ .../playbackSettings/playbackSettings.template.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/playbackSettings/playbackSettings.js b/src/components/playbackSettings/playbackSettings.js index 3f69cd4845..88ebef2f71 100644 --- a/src/components/playbackSettings/playbackSettings.js +++ b/src/components/playbackSettings/playbackSettings.js @@ -190,6 +190,11 @@ function loadForm(context, user, userSettings, systemInfo, apiClient) { 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(); apiClient.getCultures().then(allCultures => { diff --git a/src/components/playbackSettings/playbackSettings.template.html b/src/components/playbackSettings/playbackSettings.template.html index a05244140c..2bd2026df7 100644 --- a/src/components/playbackSettings/playbackSettings.template.html +++ b/src/components/playbackSettings/playbackSettings.template.html @@ -190,7 +190,7 @@
${EnableHi10pHelp}
-
+