aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Session
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-17 14:37:40 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-17 14:37:40 -0400
commit715119b525a026f0f60c9dcaae1d4899cbc6bcda (patch)
treeca08551862654a32fa4240c164e4da51a5508457 /MediaBrowser.Controller/Session
parentc8e4889ac72b4b6fa01ffd0ccf293363ca5ce744 (diff)
updated nuget
Diffstat (limited to 'MediaBrowser.Controller/Session')
-rw-r--r--MediaBrowser.Controller/Session/ISessionController.cs6
-rw-r--r--MediaBrowser.Controller/Session/SessionInfo.cs13
2 files changed, 19 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionController.cs b/MediaBrowser.Controller/Session/ISessionController.cs
index 1b50bad47..5f07b9ff8 100644
--- a/MediaBrowser.Controller/Session/ISessionController.cs
+++ b/MediaBrowser.Controller/Session/ISessionController.cs
@@ -14,6 +14,12 @@ namespace MediaBrowser.Controller.Session
bool IsSessionActive { get; }
/// <summary>
+ /// Gets a value indicating whether [supports media remote control].
+ /// </summary>
+ /// <value><c>true</c> if [supports media remote control]; otherwise, <c>false</c>.</value>
+ bool SupportsMediaControl { get; }
+
+ /// <summary>
/// Sends the play command.
/// </summary>
/// <param name="command">The command.</param>
diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs
index 9f5b687cc..bc0f8a5d1 100644
--- a/MediaBrowser.Controller/Session/SessionInfo.cs
+++ b/MediaBrowser.Controller/Session/SessionInfo.cs
@@ -139,6 +139,19 @@ namespace MediaBrowser.Controller.Session
}
}
+ public bool SupportsMediaControl
+ {
+ get
+ {
+ if (SessionController != null)
+ {
+ return SessionController.SupportsMediaControl;
+ }
+
+ return false;
+ }
+ }
+
public bool ContainsUser(Guid userId)
{
return (UserId ?? Guid.Empty) == UserId || AdditionalUsers.Any(i => userId == new Guid(i.UserId));