hook up roku session controller + web client layout fixes

This commit is contained in:
Luke Pulverenti
2013-12-25 09:39:46 -05:00
parent b5fa341e08
commit bb5e6fdcad
15 changed files with 112 additions and 21 deletions

View File

@@ -196,6 +196,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Providers\BaseMetadataProvider.cs" />
<Compile Include="Session\ISessionController.cs" />
<Compile Include="Session\ISessionControllerFactory.cs" />
<Compile Include="Session\PlaybackInfo.cs" />
<Compile Include="Session\PlaybackProgressInfo.cs" />
<Compile Include="Session\PlaybackStopInfo.cs" />

View File

@@ -0,0 +1,16 @@

namespace MediaBrowser.Controller.Session
{
/// <summary>
/// Interface ISesssionControllerFactory
/// </summary>
public interface ISessionControllerFactory
{
/// <summary>
/// Gets the session controller.
/// </summary>
/// <param name="session">The session.</param>
/// <returns>ISessionController.</returns>
ISessionController GetSessionController(SessionInfo session);
}
}

View File

@@ -34,6 +34,12 @@ namespace MediaBrowser.Controller.Session
/// <value>The sessions.</value>
IEnumerable<SessionInfo> Sessions { get; }
/// <summary>
/// Adds the parts.
/// </summary>
/// <param name="sessionFactories">The session factories.</param>
void AddParts(IEnumerable<ISessionControllerFactory> sessionFactories);
/// <summary>
/// Logs the user activity.
/// </summary>
@@ -41,10 +47,11 @@ namespace MediaBrowser.Controller.Session
/// <param name="appVersion">The app version.</param>
/// <param name="deviceId">The device id.</param>
/// <param name="deviceName">Name of the device.</param>
/// <param name="remoteEndPoint">The remote end point.</param>
/// <param name="user">The user.</param>
/// <returns>Task.</returns>
/// <exception cref="System.ArgumentNullException">user</exception>
Task<SessionInfo> LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user);
Task<SessionInfo> LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, string remoteEndPoint, User user);
/// <summary>
/// Used to report that playback has started for an item

View File

@@ -14,6 +14,12 @@ namespace MediaBrowser.Controller.Session
QueueableMediaTypes = new List<string>();
}
/// <summary>
/// Gets or sets the remote end point.
/// </summary>
/// <value>The remote end point.</value>
public string RemoteEndPoint { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance can seek.
/// </summary>