aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
index 3acc5e892..1fb5af127 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
@@ -887,5 +887,18 @@ namespace MediaBrowser.Server.Implementations.Session
return await LogSessionActivity(clientType, appVersion, deviceId, deviceName, remoteEndPoint, user).ConfigureAwait(false);
}
+
+ /// <summary>
+ /// Reports the capabilities.
+ /// </summary>
+ /// <param name="sessionId">The session identifier.</param>
+ /// <param name="capabilities">The capabilities.</param>
+ public void ReportCapabilities(Guid sessionId, SessionCapabilities capabilities)
+ {
+ var session = GetSession(sessionId);
+
+ session.PlayableMediaTypes = capabilities.PlayableMediaTypes.ToList();
+ session.SupportsFullscreenToggle = capabilities.SupportsFullscreenToggle;
+ }
}
} \ No newline at end of file