diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-11 23:43:08 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-11 23:43:08 -0400 |
| commit | a5b807e433f0d41349ed9dab8911aa4a6f55cbab (patch) | |
| tree | c0b7e783fa56e72f76da3cfe32a5bc02c7b3fb64 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 6825cad56221775dfdfc88bbf260cd1399fa4313 (diff) | |
add live tv buffer
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 0b6a703b6..6743088c6 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -1329,7 +1329,11 @@ namespace MediaBrowser.Api.Playback } //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.DeInterlace = true; } @@ -1349,7 +1353,8 @@ namespace MediaBrowser.Api.Playback { state.MediaPath = streamInfo.Path; state.IsRemote = false; - state.SendInputOverStandardInput = true; + + await Task.Delay(1000, cancellationToken).ConfigureAwait(false); } else if (!string.IsNullOrEmpty(streamInfo.Url)) { |
