PlaybackProgressInfo.cs 3.5 KB

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