aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Session
diff options
context:
space:
mode:
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 1b50bad47d..5f07b9ff80 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 9f5b687cc4..bc0f8a5d16 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));