Class SessionInfo
Inheritance
System.Object
SessionInfo
Implements
System.IDisposable
Assembly: MediaBrowser.Controller.dll
public sealed class SessionInfo : IDisposable
Constructors
Declaration
Declaration
public SessionInfo(ISessionManager sessionManager, ILogger logger)
Parameters
Properties
Declaration
public SessionUserInfo[] AdditionalUsers { get; set; }
Property Value
Gets or sets the application icon URL.
Declaration
public string AppIconUrl { get; }
Property Value
Type |
Description |
System.String |
The application icon URL.
|
Gets or sets the application version.
Declaration
public string ApplicationVersion { get; set; }
Property Value
Type |
Description |
System.String |
The application version.
|
Declaration
[IgnoreDataMember]
public ClientCapabilities Capabilities { get; set; }
Property Value
Gets or sets the type of the client.
Declaration
public string Client { get; set; }
Property Value
Type |
Description |
System.String |
The type of the client.
|
Gets or sets the device id.
Declaration
public string DeviceId { get; set; }
Property Value
Type |
Description |
System.String |
The device id.
|
Gets or sets the name of the device.
Declaration
public string DeviceName { get; set; }
Property Value
Type |
Description |
System.String |
The name of the device.
|
Declaration
public string DeviceType { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
[IgnoreDataMember]
public BaseItem FullNowPlayingItem { get; }
Property Value
Declaration
[IgnoreDataMember]
public bool HasCustomDeviceName { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool HasUser { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public string Id { get; set; }
Property Value
Type |
Description |
System.String |
The id.
|
Declaration
public long InternalDeviceId { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Gets a value indicating whether this instance is active.
Declaration
[IgnoreDataMember]
public bool IsActive { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance is active; otherwise, false .
|
Gets or sets the last activity date.
Declaration
public DateTimeOffset LastActivityDate { get; set; }
Property Value
Type |
Description |
System.DateTimeOffset |
The last activity date.
|
Gets or sets the now playing item.
Declaration
public BaseItemDto NowPlayingItem { get; }
Property Value
Declaration
[IgnoreDataMember]
public QueueItem[] NowPlayingQueue { get; set; }
Property Value
Gets or sets the playable media types.
Declaration
public string[] PlayableMediaTypes { get; }
Property Value
Type |
Description |
System.String[] |
The playable media types.
|
Declaration
public int PlaylistIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public string PlaylistItemId { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public int PlaylistLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public PlayerStateInfo PlayState { get; }
Property Value
Declaration
public string Protocol { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the remote end point.
Declaration
public IPAddress RemoteEndPoint { get; set; }
Property Value
Type |
Description |
System.Net.IPAddress |
The remote end point.
|
Declaration
public string ServerId { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the session controller.
Declaration
[IgnoreDataMember]
public ISessionController[] SessionControllers { get; set; }
Property Value
Gets or sets the supported commands.
Declaration
public string[] SupportedCommands { get; }
Property Value
Type |
Description |
System.String[] |
The supported commands.
|
Declaration
public bool SupportsRemoteControl { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public TranscodingInfo TranscodingInfo { get; }
Property Value
Gets or sets the user id.
Declaration
public string UserId { get; set; }
Property Value
Type |
Description |
System.String |
The user id.
|
Declaration
[IgnoreDataMember]
public long UserInternalId { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Gets or sets the username.
Declaration
public string UserName { get; set; }
Property Value
Type |
Description |
System.String |
The username.
|
Declaration
public string UserPrimaryImageTag { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public void AddController(ISessionController controller)
Parameters
Declaration
public bool ContainsUser(long userId)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
Declaration
public Tuple<ISessionController, bool> EnsureController<T>(Func<SessionInfo, ISessionController> factory)
Parameters
Returns
Type Parameters
Declaration
public PlaySessionInfo GetOrAddPlaySessionInfo(PlaybackProgressInfo info)
Parameters
Returns
Declaration
public PlaySessionInfo GetPlaySessionInfo(string playSessionId)
Parameters
Type |
Name |
Description |
System.String |
playSessionId |
|
Returns
Declaration
public bool IsControllableByUser(User user, bool allowAllForAdmins)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Boolean |
allowAllForAdmins |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void Ping(string playSessionId)
Parameters
Type |
Name |
Description |
System.String |
playSessionId |
|
Declaration
public void RegisterPlaySession(PlaybackProgressInfo info)
Parameters
Declaration
public void RemovePlaySession(PlaySessionInfo playSessionInfo)
Parameters
Declaration
public void RemovePlaySession(string playSessionId)
Parameters
Type |
Name |
Description |
System.String |
playSessionId |
|
Declaration
public void ReportTranscodingInfo(TranscodingInfo info, string playSessionId)
Parameters
Declaration
public bool SupportsCommand(GeneralCommandType command)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static void UpdateValues(PlayerStateInfo playerStateInfo, PlaybackProgressInfo info)
Parameters
Implements
System.IDisposable
Extension Methods