mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 14:56:31 +01:00
updated nuget
This commit is contained in:
@@ -13,6 +13,12 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <value><c>true</c> if this instance is session active; otherwise, <c>false</c>.</value>
|
||||
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>
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user