PlayerStateInfo.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. namespace MediaBrowser.Model.Session
  2. {
  3. public class PlayerStateInfo
  4. {
  5. /// <summary>
  6. /// Gets or sets the now playing position ticks.
  7. /// </summary>
  8. /// <value>The now playing position ticks.</value>
  9. public long? PositionTicks { get; set; }
  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 a value indicating whether this instance is paused.
  17. /// </summary>
  18. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  19. public bool IsPaused { get; set; }
  20. /// <summary>
  21. /// Gets or sets a value indicating whether this instance is muted.
  22. /// </summary>
  23. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  24. public bool IsMuted { get; set; }
  25. /// <summary>
  26. /// Gets or sets the volume level.
  27. /// </summary>
  28. /// <value>The volume level.</value>
  29. public int? VolumeLevel { get; set; }
  30. /// <summary>
  31. /// Gets or sets the index of the now playing audio stream.
  32. /// </summary>
  33. /// <value>The index of the now playing audio stream.</value>
  34. public int? AudioStreamIndex { get; set; }
  35. /// <summary>
  36. /// Gets or sets the index of the now playing subtitle stream.
  37. /// </summary>
  38. /// <value>The index of the now playing subtitle stream.</value>
  39. public int? SubtitleStreamIndex { get; set; }
  40. /// <summary>
  41. /// Gets or sets the now playing media version identifier.
  42. /// </summary>
  43. /// <value>The now playing media version identifier.</value>
  44. public string MediaSourceId { get; set; }
  45. /// <summary>
  46. /// Gets or sets the play method.
  47. /// </summary>
  48. /// <value>The play method.</value>
  49. public PlayMethod? PlayMethod { get; set; }
  50. /// <summary>
  51. /// Gets or sets the repeat mode.
  52. /// </summary>
  53. /// <value>The repeat mode.</value>
  54. public RepeatMode RepeatMode { get; set; }
  55. }
  56. }