mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-30 04:34:49 +03:00
update translations
This commit is contained in:
@@ -339,14 +339,23 @@ namespace MediaBrowser.Api
|
||||
return;
|
||||
}
|
||||
|
||||
var timerDuration = job.Type == TranscodingJobType.Progressive ?
|
||||
1000 :
|
||||
1800000;
|
||||
var timerDuration = 1000;
|
||||
|
||||
// We can really reduce the timeout for apps that are using the newer api
|
||||
if (!string.IsNullOrWhiteSpace(job.PlaySessionId) && job.Type != TranscodingJobType.Progressive)
|
||||
if (job.Type != TranscodingJobType.Progressive)
|
||||
{
|
||||
timerDuration = 50000;
|
||||
timerDuration = 1800000;
|
||||
|
||||
// We can really reduce the timeout for apps that are using the newer api
|
||||
if (!string.IsNullOrWhiteSpace(job.PlaySessionId))
|
||||
{
|
||||
timerDuration = 60000;
|
||||
|
||||
// With newer just in time encoding, we no longer need to be aggressive about killing the stream
|
||||
if (!job.IsLiveOutput)
|
||||
{
|
||||
timerDuration = 180000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
job.PingTimeout = timerDuration;
|
||||
@@ -628,6 +637,9 @@ namespace MediaBrowser.Api
|
||||
/// </summary>
|
||||
/// <value>The live stream identifier.</value>
|
||||
public string LiveStreamId { get; set; }
|
||||
|
||||
public bool IsLiveOutput { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user