mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restore ForceLiveStream param
This commit is contained in:
parent
da7c9a4899
commit
d0f7abaae8
23 changed files with 149 additions and 94 deletions
|
@ -275,7 +275,9 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
|
|||
var currentSrc = (self.getCurrentSrc(mediaRenderer) || '').toLowerCase();
|
||||
|
||||
if (currentSrc.indexOf('.m3u8') != -1) {
|
||||
return true;
|
||||
if (currentSrc.indexOf('forcelivestream=true') == -1) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
var duration = mediaRenderer.duration();
|
||||
return duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY;
|
||||
|
@ -745,6 +747,11 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
|
|||
|
||||
if (mediaSource.TranscodingSubProtocol == 'hls') {
|
||||
|
||||
if (mediaUrl.toLowerCase().indexOf('forcelivestream=true') != -1) {
|
||||
startPositionInSeekParam = 0;
|
||||
startTimeTicksOffset = startPosition || 0;
|
||||
}
|
||||
|
||||
contentType = 'application/x-mpegURL';
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue