Update to use SupportsMediaControl

This commit is contained in:
Luke Pulverenti
2015-02-19 14:21:03 -05:00
parent 5343630e0a
commit 8610a9b7ef
5 changed files with 31 additions and 27 deletions

View File

@@ -109,7 +109,7 @@ namespace MediaBrowser.Server.Implementations.Devices
devices = devices.Where(i =>
{
var caps = GetCapabilities(i.Id);
var deviceVal = caps.SupportsUniqueIdentifier ?? caps.SupportsPersistentIdentifier;
var deviceVal = caps.SupportsPersistentIdentifier;
return deviceVal == val;
});
}

View File

@@ -1327,8 +1327,7 @@ namespace MediaBrowser.Server.Implementations.Session
ClientCapabilities capabilities,
bool saveCapabilities)
{
session.PlayableMediaTypes = capabilities.PlayableMediaTypes;
session.SupportedCommands = capabilities.SupportedCommands;
session.Capabilities = capabilities;
if (!string.IsNullOrWhiteSpace(capabilities.MessageCallbackUrl))
{