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

Move this to relevant scope

This commit is contained in:
Patrick Davis 2025-02-17 13:21:57 +00:00
parent 6ed7764156
commit c7acdf0aff

View file

@ -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'}