aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs3
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs27
2 files changed, 20 insertions, 10 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
index 560d203db..70a4cb439 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
@@ -161,6 +161,7 @@ namespace MediaBrowser.Server.Implementations.Session
if (capabilities != null)
{
+ info.AppIconUrl = capabilities.IconUrl;
ReportCapabilities(info, capabilities, false);
}
}
@@ -366,6 +367,7 @@ namespace MediaBrowser.Server.Implementations.Session
session.PlayState.AudioStreamIndex = info.AudioStreamIndex;
session.PlayState.SubtitleStreamIndex = info.SubtitleStreamIndex;
session.PlayState.PlayMethod = info.PlayMethod;
+ session.PlayState.RepeatMode = info.RepeatMode;
}
/// <summary>
@@ -1475,6 +1477,7 @@ namespace MediaBrowser.Server.Implementations.Session
NowPlayingItem = session.NowPlayingItem,
SupportsRemoteControl = session.SupportsMediaControl,
PlayState = session.PlayState,
+ AppIconUrl = session.AppIconUrl,
TranscodingInfo = session.NowPlayingItem == null ? null : session.TranscodingInfo
};
diff --git a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
index b473444ac..602bc4876 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs
@@ -85,16 +85,23 @@ namespace MediaBrowser.Server.Implementations.Session
async void _httpServer_WebSocketConnecting(object sender, WebSocketConnectingEventArgs e)
{
- var token = e.QueryString["api_key"];
- if (!string.IsNullOrWhiteSpace(token))
- {
- var session = await GetSession(e.QueryString, e.Endpoint).ConfigureAwait(false);
-
- if (session == null)
- {
- //e.AllowConnection = false;
- }
- }
+ //var token = e.QueryString["api_key"];
+ //if (!string.IsNullOrWhiteSpace(token))
+ //{
+ // try
+ // {
+ // var session = await GetSession(e.QueryString, e.Endpoint).ConfigureAwait(false);
+
+ // if (session == null)
+ // {
+ // e.AllowConnection = false;
+ // }
+ // }
+ // catch (Exception ex)
+ // {
+ // _logger.ErrorException("Error getting session info", ex);
+ // }
+ //}
}
private Task<SessionInfo> GetSession(NameValueCollection queryString, string remoteEndpoint)