2014-04-22 10:25:54 -07:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using System.Collections.Generic;
|
2014-04-15 19:17:48 -07:00
|
|
|
|
|
2014-03-21 20:35:03 -07:00
|
|
|
|
namespace MediaBrowser.Model.Session
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class PlaybackStartInfo.
|
|
|
|
|
/// </summary>
|
2014-04-15 19:17:48 -07:00
|
|
|
|
public class PlaybackStartInfo : PlaybackProgressInfo
|
2014-03-21 20:35:03 -07:00
|
|
|
|
{
|
|
|
|
|
public PlaybackStartInfo()
|
|
|
|
|
{
|
2014-04-15 19:17:48 -07:00
|
|
|
|
QueueableMediaTypes = new List<string>();
|
2014-03-21 20:35:03 -07:00
|
|
|
|
}
|
2014-04-15 19:17:48 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the queueable media types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The queueable media types.</value>
|
|
|
|
|
public List<string> QueueableMediaTypes { get; set; }
|
2014-03-21 20:35:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class PlaybackProgressInfo.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PlaybackProgressInfo
|
|
|
|
|
{
|
2014-04-15 19:17:48 -07: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>
|
|
|
|
|
public BaseItemInfo Item { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item identifier.</value>
|
2014-03-21 20:35:03 -07:00
|
|
|
|
public string ItemId { get; set; }
|
2014-04-15 19:17:48 -07: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 09:16:43 -07:00
|
|
|
|
public string MediaSourceId { get; set; }
|
2014-03-21 20:35:03 -07:00
|
|
|
|
|
2014-04-15 19:17:48 -07: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-21 20:35:03 -07:00
|
|
|
|
|
2014-04-15 19:17:48 -07: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-21 20:35:03 -07:00
|
|
|
|
public bool IsPaused { get; set; }
|
|
|
|
|
|
2014-04-15 19:17:48 -07: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-21 20:35:03 -07:00
|
|
|
|
public bool IsMuted { get; set; }
|
2014-04-06 10:53:23 -07:00
|
|
|
|
|
2014-04-15 19:17:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the position ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The position ticks.</value>
|
|
|
|
|
public long? PositionTicks { get; set; }
|
2014-04-06 10:53:23 -07:00
|
|
|
|
|
2014-04-15 19:17:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the volume level.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The volume level.</value>
|
2014-04-06 10:53:23 -07:00
|
|
|
|
public int? VolumeLevel { get; set; }
|
2014-04-17 22:03:01 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play method.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The play method.</value>
|
|
|
|
|
public PlayMethod PlayMethod { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum PlayMethod
|
|
|
|
|
{
|
|
|
|
|
Transcode = 0,
|
|
|
|
|
DirectStream = 1,
|
|
|
|
|
DirectPlay = 2
|
2014-03-21 20:35:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class PlaybackStopInfo.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PlaybackStopInfo
|
|
|
|
|
{
|
2014-04-15 19:17:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item.</value>
|
|
|
|
|
public BaseItemInfo Item { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item identifier.</value>
|
2014-03-21 20:35:03 -07:00
|
|
|
|
public string ItemId { get; set; }
|
2014-04-15 19:17:48 -07: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 09:16:43 -07:00
|
|
|
|
public string MediaSourceId { get; set; }
|
2014-03-21 20:35:03 -07:00
|
|
|
|
|
2014-04-15 19:17:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the position ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The position ticks.</value>
|
2014-03-21 20:35:03 -07:00
|
|
|
|
public long? PositionTicks { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|