diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-22 11:59:17 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-22 11:59:17 -0400 |
| commit | ae768735aa3755083321d1c9975a8b3fcf644b31 (patch) | |
| tree | de4c39fa6c93569e7d400e3361d389af8072dd52 /MediaBrowser.Api/ApiEntryPoint.cs | |
| parent | 11aa20a7b819f54551256467dcdf315dbdef4237 (diff) | |
update translations
Diffstat (limited to 'MediaBrowser.Api/ApiEntryPoint.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiEntryPoint.cs | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index 2a72854fb..dff60d483 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -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> |
