From c7acdf0affec409f55e1389364b83f52759782e1 Mon Sep 17 00:00:00 2001 From: Patrick Davis Date: Mon, 17 Feb 2025 13:21:57 +0000 Subject: [PATCH] Move this to relevant scope --- src/scripts/browserDeviceProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 5b913e6a9b..a256b267b4 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -823,7 +823,6 @@ export default function (options) { if ((browser.safari || browser.tizen || browser.web0s) && !canPlayNativeHlsInFmp4()) { enableFmp4Hls = false; } - const enableLimitedSegmentLength = userSettings.limitSegmentLength(); if (canPlayHls() && browser.enableHlsAudio !== false) { profile.TranscodingProfiles.push({ @@ -865,6 +864,7 @@ export default function (options) { }); if (canPlayHls() && options.enableHls !== false) { + const enableLimitedSegmentLength = userSettings.limitSegmentLength(); if (hlsInFmp4VideoCodecs.length && hlsInFmp4VideoAudioCodecs.length && enableFmp4Hls) { // HACK: Since there is no filter for TS/MP4 in the API, specify HLS support in general and rely on retry after DirectPlay error // FIXME: Need support for {Container: 'mp4', Protocol: 'hls'} or {Container: 'hls', SubContainer: 'mp4'}