mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add live tv buffer
This commit is contained in:
parent
6825cad562
commit
a5b807e433
@ -1329,7 +1329,11 @@ namespace MediaBrowser.Api.Playback
|
|||||||
}
|
}
|
||||||
|
|
||||||
//state.RunTimeTicks = recording.RunTimeTicks;
|
//state.RunTimeTicks = recording.RunTimeTicks;
|
||||||
state.ReadInputAtNativeFramerate = recording.RecordingInfo.Status == RecordingStatus.InProgress;
|
if (recording.RecordingInfo.Status == RecordingStatus.InProgress && !state.IsRemote)
|
||||||
|
{
|
||||||
|
await Task.Delay(1000, cancellationToken).ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
|
||||||
state.AudioSync = "1000";
|
state.AudioSync = "1000";
|
||||||
state.DeInterlace = true;
|
state.DeInterlace = true;
|
||||||
}
|
}
|
||||||
@ -1349,7 +1353,8 @@ namespace MediaBrowser.Api.Playback
|
|||||||
{
|
{
|
||||||
state.MediaPath = streamInfo.Path;
|
state.MediaPath = streamInfo.Path;
|
||||||
state.IsRemote = false;
|
state.IsRemote = false;
|
||||||
state.SendInputOverStandardInput = true;
|
|
||||||
|
await Task.Delay(1000, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else if (!string.IsNullOrEmpty(streamInfo.Url))
|
else if (!string.IsNullOrEmpty(streamInfo.Url))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user