PlayerStateInfo.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. namespace MediaBrowser.Model.Session
  4. {
  5. public class PlayerStateInfo
  6. {
  7. /// <summary>
  8. /// Gets or sets the now playing position ticks.
  9. /// </summary>
  10. /// <value>The now playing position ticks.</value>
  11. public long? PositionTicks { get; set; }
  12. /// <summary>
  13. /// Gets or sets a value indicating whether this instance can seek.
  14. /// </summary>
  15. /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
  16. public bool CanSeek { get; set; }
  17. /// <summary>
  18. /// Gets or sets a value indicating whether this instance is paused.
  19. /// </summary>
  20. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  21. public bool IsPaused { get; set; }
  22. /// <summary>
  23. /// Gets or sets a value indicating whether this instance is muted.
  24. /// </summary>
  25. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  26. public bool IsMuted { get; set; }
  27. /// <summary>
  28. /// Gets or sets the volume level.
  29. /// </summary>
  30. /// <value>The volume level.</value>
  31. public int? VolumeLevel { get; set; }
  32. /// <summary>
  33. /// Gets or sets the index of the now playing audio stream.
  34. /// </summary>
  35. /// <value>The index of the now playing audio stream.</value>
  36. public int? AudioStreamIndex { get; set; }
  37. /// <summary>
  38. /// Gets or sets the index of the now playing subtitle stream.
  39. /// </summary>
  40. /// <value>The index of the now playing subtitle stream.</value>
  41. public int? SubtitleStreamIndex { get; set; }
  42. /// <summary>
  43. /// Gets or sets the now playing media version identifier.
  44. /// </summary>
  45. /// <value>The now playing media version identifier.</value>
  46. public string MediaSourceId { get; set; }
  47. /// <summary>
  48. /// Gets or sets the play method.
  49. /// </summary>
  50. /// <value>The play method.</value>
  51. public PlayMethod? PlayMethod { get; set; }
  52. /// <summary>
  53. /// Gets or sets the repeat mode.
  54. /// </summary>
  55. /// <value>The repeat mode.</value>
  56. public RepeatMode RepeatMode { get; set; }
  57. /// <summary>
  58. /// Gets or sets the playback order.
  59. /// </summary>
  60. /// <value>The playback order.</value>
  61. public PlaybackOrder PlaybackOrder { get; set; }
  62. /// <summary>
  63. /// Gets or sets the now playing live stream identifier.
  64. /// </summary>
  65. /// <value>The live stream identifier.</value>
  66. public string LiveStreamId { get; set; }
  67. }
  68. }