PlaybackProgressInfo.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using MediaBrowser.Model.Entities;
  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 BaseItemInfo 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. /// <summary>
  60. /// Gets or sets the volume level.
  61. /// </summary>
  62. /// <value>The volume level.</value>
  63. public int? VolumeLevel { get; set; }
  64. /// <summary>
  65. /// Gets or sets the play method.
  66. /// </summary>
  67. /// <value>The play method.</value>
  68. public PlayMethod PlayMethod { get; set; }
  69. /// <summary>
  70. /// Gets or sets the live stream identifier.
  71. /// </summary>
  72. /// <value>The live stream identifier.</value>
  73. public string LiveStreamId { get; set; }
  74. /// <summary>
  75. /// Gets or sets the play session identifier.
  76. /// </summary>
  77. /// <value>The play session identifier.</value>
  78. public string PlaySessionId { get; set; }
  79. /// <summary>
  80. /// Gets or sets the repeat mode.
  81. /// </summary>
  82. /// <value>The repeat mode.</value>
  83. public RepeatMode RepeatMode { get; set; }
  84. }
  85. public enum RepeatMode
  86. {
  87. RepeatNone = 0,
  88. RepeatAll = 1,
  89. RepeatOne = 2
  90. }
  91. }