|
|
@ -14,17 +14,8 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
public SessionInfo()
|
|
|
|
public SessionInfo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QueueableMediaTypes = new List<string>();
|
|
|
|
QueueableMediaTypes = new List<string>();
|
|
|
|
PlayableMediaTypes = new List<string>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MediaType.Audio,
|
|
|
|
|
|
|
|
MediaType.Book,
|
|
|
|
|
|
|
|
MediaType.Game,
|
|
|
|
|
|
|
|
MediaType.Photo,
|
|
|
|
|
|
|
|
MediaType.Video
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AdditionalUsers = new List<SessionUserInfo>();
|
|
|
|
AdditionalUsers = new List<SessionUserInfo>();
|
|
|
|
SupportedCommands = new List<string>();
|
|
|
|
|
|
|
|
PlayState = new PlayerStateInfo();
|
|
|
|
PlayState = new PlayerStateInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +23,8 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
|
|
|
|
|
|
|
|
public List<SessionUserInfo> AdditionalUsers { get; set; }
|
|
|
|
public List<SessionUserInfo> AdditionalUsers { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ClientCapabilities Capabilities { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the remote end point.
|
|
|
|
/// Gets or sets the remote end point.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -48,7 +41,17 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
/// Gets or sets the playable media types.
|
|
|
|
/// Gets or sets the playable media types.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The playable media types.</value>
|
|
|
|
/// <value>The playable media types.</value>
|
|
|
|
public List<string> PlayableMediaTypes { get; set; }
|
|
|
|
public List<string> PlayableMediaTypes
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Capabilities == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new List<string>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Capabilities.PlayableMediaTypes;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
@ -126,7 +129,17 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
/// Gets or sets the supported commands.
|
|
|
|
/// Gets or sets the supported commands.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The supported commands.</value>
|
|
|
|
/// <value>The supported commands.</value>
|
|
|
|
public List<string> SupportedCommands { get; set; }
|
|
|
|
public List<string> SupportedCommands
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Capabilities == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new List<string>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Capabilities.SupportedCommands;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public TranscodingInfo TranscodingInfo { get; set; }
|
|
|
|
public TranscodingInfo TranscodingInfo { get; set; }
|
|
|
|
|
|
|
|
|
|
|
@ -151,6 +164,11 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get
|
|
|
|
get
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Capabilities == null || !Capabilities.SupportsMediaControl)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (SessionController != null)
|
|
|
|
if (SessionController != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return SessionController.SupportsMediaControl;
|
|
|
|
return SessionController.SupportsMediaControl;
|
|
|
|