aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 23:35:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 23:35:03 -0400
commit327af0fe62bb3a055e4286154e9ba6104969af24 (patch)
tree60ece20a2867291141d1a5918859f2d5e3cb582a /MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
parent72917cc0b795c8f18a7b982ef8c70da5aa8c8fa8 (diff)
rework media versions to be based on original item id
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
index e5fbc7d9f..5c4c00e7d 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
@@ -223,6 +223,11 @@ namespace MediaBrowser.Server.Implementations.Session
QueueableMediaTypes = queueableMediaTypes.Split(',').ToList()
};
+ if (vals.Length > 3)
+ {
+ info.MediaVersionId = vals[3];
+ }
+
_sessionManager.OnPlaybackStart(info);
}
}
@@ -265,6 +270,11 @@ namespace MediaBrowser.Server.Implementations.Session
SessionId = session.Id
};
+ if (vals.Length > 4)
+ {
+ info.MediaVersionId = vals[4];
+ }
+
_sessionManager.OnPlaybackProgress(info);
}
}
@@ -304,6 +314,11 @@ namespace MediaBrowser.Server.Implementations.Session
SessionId = session.Id
};
+ if (vals.Length > 2)
+ {
+ info.MediaVersionId = vals[2];
+ }
+
_sessionManager.OnPlaybackStopped(info);
}
}