aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-17 09:55:48 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-17 09:55:48 -0400
commit337777afc981e200f60f8c994984c9138a6a2ffb (patch)
tree49e4cdc2c45187ee75b80cbe8a7435f204ac8d19
parent94a2cfa9f560a1caede24195755ae95068648210 (diff)
update dlna resume
-rw-r--r--MediaBrowser.Dlna/PlayTo/PlayToController.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Dlna/PlayTo/PlayToController.cs b/MediaBrowser.Dlna/PlayTo/PlayToController.cs
index 2c3fbfeff..b652d2fe9 100644
--- a/MediaBrowser.Dlna/PlayTo/PlayToController.cs
+++ b/MediaBrowser.Dlna/PlayTo/PlayToController.cs
@@ -385,6 +385,16 @@ namespace MediaBrowser.Dlna.PlayTo
if (newItem.StreamInfo.IsDirectStream)
{
+ await Task.Delay(1000).ConfigureAwait(false);
+
+ var maxWait = 15000000;
+ var currentWait = 0;
+ while (_device.TransportState != TRANSPORTSTATE.PLAYING && currentWait < maxWait)
+ {
+ await Task.Delay(1000).ConfigureAwait(false);
+ currentWait += 1000;
+ }
+
await _device.Seek(TimeSpan.FromTicks(newPosition)).ConfigureAwait(false);
}
return;