mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
-Add clientside ability to limit segment length to 1. See https://github.com/jellyfin/jellyfin-webos/issues/248 for details.
-Add translations for this new setting (generated by github copilot). -Corrected small typo 'perfer'.
This commit is contained in:
parent
2b70fbc677
commit
6ed7764156
56 changed files with 135 additions and 4 deletions
|
@ -823,6 +823,7 @@ 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({
|
||||
|
@ -883,7 +884,8 @@ export default function (options) {
|
|||
Protocol: 'hls',
|
||||
MaxAudioChannels: physicalAudioChannels.toString(),
|
||||
MinSegments: browser.iOS || browser.osx ? '2' : '1',
|
||||
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames
|
||||
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames,
|
||||
SegmentLength: enableLimitedSegmentLength ? 1 : undefined
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -906,7 +908,8 @@ export default function (options) {
|
|||
Protocol: 'hls',
|
||||
MaxAudioChannels: physicalAudioChannels.toString(),
|
||||
MinSegments: browser.iOS || browser.osx ? '2' : '1',
|
||||
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames
|
||||
BreakOnNonKeyFrames: hlsBreakOnNonKeyFrames,
|
||||
SegmentLength: enableLimitedSegmentLength ? 1 : undefined
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue