PlaybackProgressInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. using System;
  2. using MediaBrowser.Model.Dto;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. /// <summary>
  6. /// Class PlaybackProgressInfo.
  7. /// </summary>
  8. public class PlaybackProgressInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets a value indicating whether this instance can seek.
  12. /// </summary>
  13. /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
  14. public bool CanSeek { get; set; }
  15. /// <summary>
  16. /// Gets or sets the item.
  17. /// </summary>
  18. /// <value>The item.</value>
  19. public BaseItemDto Item { get; set; }
  20. /// <summary>
  21. /// Gets or sets the item identifier.
  22. /// </summary>
  23. /// <value>The item identifier.</value>
  24. public Guid ItemId { get; set; }
  25. /// <summary>
  26. /// Gets or sets the session id.
  27. /// </summary>
  28. /// <value>The session id.</value>
  29. public string SessionId { get; set; }
  30. /// <summary>
  31. /// Gets or sets the media version identifier.
  32. /// </summary>
  33. /// <value>The media version identifier.</value>
  34. public string MediaSourceId { get; set; }
  35. /// <summary>
  36. /// Gets or sets the index of the audio stream.
  37. /// </summary>
  38. /// <value>The index of the audio stream.</value>
  39. public int? AudioStreamIndex { get; set; }
  40. /// <summary>
  41. /// Gets or sets the index of the subtitle stream.
  42. /// </summary>
  43. /// <value>The index of the subtitle stream.</value>
  44. public int? SubtitleStreamIndex { get; set; }
  45. /// <summary>
  46. /// Gets or sets a value indicating whether this instance is paused.
  47. /// </summary>
  48. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  49. public bool IsPaused { get; set; }
  50. /// <summary>
  51. /// Gets or sets a value indicating whether this instance is muted.
  52. /// </summary>
  53. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  54. public bool IsMuted { get; set; }
  55. /// <summary>
  56. /// Gets or sets the position ticks.
  57. /// </summary>
  58. /// <value>The position ticks.</value>
  59. public long? PositionTicks { get; set; }
  60. public long? PlaybackStartTimeTicks { get; set; }
  61. /// <summary>
  62. /// Gets or sets the volume level.
  63. /// </summary>
  64. /// <value>The volume level.</value>
  65. public int? VolumeLevel { get; set; }
  66. public int? Brightness { get; set; }
  67. public string AspectRatio { get; set; }
  68. /// <summary>
  69. /// Gets or sets the play method.
  70. /// </summary>
  71. /// <value>The play method.</value>
  72. public PlayMethod PlayMethod { get; set; }
  73. /// <summary>
  74. /// Gets or sets the live stream identifier.
  75. /// </summary>
  76. /// <value>The live stream identifier.</value>
  77. public string LiveStreamId { get; set; }
  78. /// <summary>
  79. /// Gets or sets the play session identifier.
  80. /// </summary>
  81. /// <value>The play session identifier.</value>
  82. public string PlaySessionId { get; set; }
  83. /// <summary>
  84. /// Gets or sets the repeat mode.
  85. /// </summary>
  86. /// <value>The repeat mode.</value>
  87. public RepeatMode RepeatMode { get; set; }
  88. public QueueItem[] NowPlayingQueue { get; set; }
  89. public string PlaylistItemId { get; set; }
  90. }
  91. public enum RepeatMode
  92. {
  93. RepeatNone = 0,
  94. RepeatAll = 1,
  95. RepeatOne = 2
  96. }
  97. public class QueueItem
  98. {
  99. public Guid Id { get; set; }
  100. public string PlaylistItemId { get; set; }
  101. }
  102. }