aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-29 21:42:34 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-29 21:42:34 -0400
commit2dac07bc3fa130021372eca223ed81ef695ec914 (patch)
tree1c1506e050b63cab229155a9833dcc0a96df9fc2
parentfafe56739f8519b38da0dab5610da20265e19d62 (diff)
add delay for remote buffering
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 725f37bca..c9437b2c3 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -645,6 +645,18 @@ namespace MediaBrowser.Api.Playback
{
await Task.Delay(100).ConfigureAwait(false);
}
+
+ // Allow a small amount of time to buffer a little
+ if (state.Item is Video)
+ {
+ await Task.Delay(500).ConfigureAwait(false);
+ }
+
+ // This is arbitrary, but add a little buffer time when internet streaming
+ if (state.Item.LocationType == LocationType.Remote)
+ {
+ await Task.Delay(2000).ConfigureAwait(false);
+ }
}
/// <summary>