add new mirror mode

This commit is contained in:
Luke Pulverenti
2014-04-13 13:27:13 -04:00
parent b6ca79b73f
commit 8df1ebe499
31 changed files with 446 additions and 370 deletions

View File

@@ -62,11 +62,10 @@ namespace MediaBrowser.Model.ApiClient
/// <summary>
/// Reports the capabilities.
/// </summary>
/// <param name="sessionId">The session identifier.</param>
/// <param name="capabilities">The capabilities.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task ReportCapabilities(string sessionId, ClientCapabilities capabilities, CancellationToken cancellationToken);
Task ReportCapabilities(ClientCapabilities capabilities, CancellationToken cancellationToken);
/// <summary>
/// Gets the index of the game players.
@@ -771,6 +770,13 @@ namespace MediaBrowser.Model.ApiClient
/// <returns>System.String.</returns>
string GetImageUrl(ProgramInfoDto item, ImageOptions options);
/// <summary>
/// Gets the subtitle URL.
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetSubtitleUrl(SubtitleOptions options);
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>

View File

@@ -158,4 +158,19 @@
/// <value>The device id.</value>
public string DeviceId { get; set; }
}
public class SubtitleOptions
{
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
/// <value>The item identifier.</value>
public string ItemId { get; set; }
/// <summary>
/// Gets or sets the index of the stream.
/// </summary>
/// <value>The index of the stream.</value>
public int StreamIndex { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
@@ -81,6 +82,54 @@ namespace MediaBrowser.Model.Entities
/// </summary>
/// <value>The media version identifier.</value>
public string MediaSourceId { get; set; }
/// <summary>
/// Gets or sets the premiere date.
/// </summary>
/// <value>The premiere date.</value>
public DateTime? PremiereDate { get; set; }
/// <summary>
/// Gets or sets the production year.
/// </summary>
/// <value>The production year.</value>
public int? ProductionYear { get; set; }
/// <summary>
/// Gets or sets the index number.
/// </summary>
/// <value>The index number.</value>
public int? IndexNumber { get; set; }
/// <summary>
/// Gets or sets the index number end.
/// </summary>
/// <value>The index number end.</value>
public int? IndexNumberEnd { get; set; }
/// <summary>
/// Gets or sets the parent index number.
/// </summary>
/// <value>The parent index number.</value>
public int? ParentIndexNumber { get; set; }
/// <summary>
/// Gets or sets the name of the series.
/// </summary>
/// <value>The name of the series.</value>
public string SeriesName { get; set; }
/// <summary>
/// Gets or sets the album.
/// </summary>
/// <value>The album.</value>
public string Album { get; set; }
/// <summary>
/// Gets or sets the artists.
/// </summary>
/// <value>The artists.</value>
public List<string> Artists { get; set; }
/// <summary>
/// Gets a value indicating whether this instance has primary image.
@@ -91,5 +140,10 @@ namespace MediaBrowser.Model.Entities
{
get { return PrimaryImageTag.HasValue; }
}
public BaseItemInfo()
{
Artists = new List<string>();
}
}
}

View File

@@ -47,6 +47,7 @@ namespace MediaBrowser.Model.Session
SetVolume = 22,
SetAudioStreamIndex = 23,
SetSubtitleStreamIndex = 24,
ToggleFullscreen = 25
ToggleFullscreen = 25,
DisplayContent = 26
}
}

View File

@@ -164,12 +164,6 @@ namespace MediaBrowser.Model.Session
/// </summary>
/// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
public bool SupportsRemoteControl { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [supports navigation commands].
/// </summary>
/// <value><c>true</c> if [supports navigation commands]; otherwise, <c>false</c>.</value>
public bool SupportsNavigationControl { get; set; }
public event PropertyChangedEventHandler PropertyChanged;