2017-06-09 19:26:54 +00:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2014-04-16 02:17:48 +00:00
|
|
|
|
|
2014-03-22 03:35:03 +00:00
|
|
|
|
namespace MediaBrowser.Model.Session
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class PlaybackProgressInfo.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PlaybackProgressInfo
|
|
|
|
|
{
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance can seek.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool CanSeek { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item.</value>
|
2017-06-09 19:26:54 +00:00
|
|
|
|
public BaseItemDto Item { get; set; }
|
2014-04-16 02:17:48 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item identifier.</value>
|
2014-03-22 03:35:03 +00:00
|
|
|
|
public string ItemId { get; set; }
|
2014-04-16 02:17:48 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the session id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The session id.</value>
|
|
|
|
|
public string SessionId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the media version identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The media version identifier.</value>
|
2014-03-22 16:16:43 +00:00
|
|
|
|
public string MediaSourceId { get; set; }
|
2014-03-22 03:35:03 +00:00
|
|
|
|
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the index of the audio stream.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The index of the audio stream.</value>
|
|
|
|
|
public int? AudioStreamIndex { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the index of the subtitle stream.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The index of the subtitle stream.</value>
|
|
|
|
|
public int? SubtitleStreamIndex { get; set; }
|
2014-03-22 03:35:03 +00:00
|
|
|
|
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is paused.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
|
2014-03-22 03:35:03 +00:00
|
|
|
|
public bool IsPaused { get; set; }
|
|
|
|
|
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is muted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
|
2014-03-22 03:35:03 +00:00
|
|
|
|
public bool IsMuted { get; set; }
|
2014-04-06 17:53:23 +00:00
|
|
|
|
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the position ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The position ticks.</value>
|
|
|
|
|
public long? PositionTicks { get; set; }
|
2014-04-06 17:53:23 +00:00
|
|
|
|
|
2017-08-17 20:19:02 +00:00
|
|
|
|
public long? PlaybackStartTimeTicks { get; set; }
|
2017-06-09 19:26:54 +00:00
|
|
|
|
|
2014-04-16 02:17:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the volume level.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The volume level.</value>
|
2014-04-06 17:53:23 +00:00
|
|
|
|
public int? VolumeLevel { get; set; }
|
2014-04-18 05:03:01 +00:00
|
|
|
|
|
2017-03-03 20:16:43 +00:00
|
|
|
|
public int? Brightness { get; set; }
|
|
|
|
|
|
|
|
|
|
public string AspectRatio { get; set; }
|
|
|
|
|
|
2014-04-18 05:03:01 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play method.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The play method.</value>
|
|
|
|
|
public PlayMethod PlayMethod { get; set; }
|
2015-03-29 18:16:40 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the live stream identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The live stream identifier.</value>
|
|
|
|
|
public string LiveStreamId { get; set; }
|
2015-04-01 21:55:50 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play session identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The play session identifier.</value>
|
|
|
|
|
public string PlaySessionId { get; set; }
|
2015-07-24 15:20:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the repeat mode.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The repeat mode.</value>
|
|
|
|
|
public RepeatMode RepeatMode { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum RepeatMode
|
|
|
|
|
{
|
|
|
|
|
RepeatNone = 0,
|
|
|
|
|
RepeatAll = 1,
|
|
|
|
|
RepeatOne = 2
|
2014-04-18 05:03:01 +00:00
|
|
|
|
}
|
2014-05-08 20:26:20 +00:00
|
|
|
|
}
|