MediaStream.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. using ProtoBuf;
  2. namespace MediaBrowser.Model.Entities
  3. {
  4. /// <summary>
  5. /// Class MediaStream
  6. /// </summary>
  7. [ProtoContract]
  8. public class MediaStream
  9. {
  10. /// <summary>
  11. /// Gets or sets the codec.
  12. /// </summary>
  13. /// <value>The codec.</value>
  14. [ProtoMember(1)]
  15. public string Codec { get; set; }
  16. /// <summary>
  17. /// Gets or sets the language.
  18. /// </summary>
  19. /// <value>The language.</value>
  20. [ProtoMember(2)]
  21. public string Language { get; set; }
  22. /// <summary>
  23. /// Gets or sets the bit rate.
  24. /// </summary>
  25. /// <value>The bit rate.</value>
  26. [ProtoMember(3)]
  27. public int? BitRate { get; set; }
  28. /// <summary>
  29. /// Gets or sets the channels.
  30. /// </summary>
  31. /// <value>The channels.</value>
  32. [ProtoMember(4)]
  33. public int? Channels { get; set; }
  34. /// <summary>
  35. /// Gets or sets the sample rate.
  36. /// </summary>
  37. /// <value>The sample rate.</value>
  38. [ProtoMember(5)]
  39. public int? SampleRate { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether this instance is default.
  42. /// </summary>
  43. /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
  44. [ProtoMember(6)]
  45. public bool IsDefault { get; set; }
  46. /// <summary>
  47. /// Gets or sets a value indicating whether this instance is forced.
  48. /// </summary>
  49. /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
  50. [ProtoMember(7)]
  51. public bool IsForced { get; set; }
  52. /// <summary>
  53. /// Gets or sets the height.
  54. /// </summary>
  55. /// <value>The height.</value>
  56. [ProtoMember(8)]
  57. public int? Height { get; set; }
  58. /// <summary>
  59. /// Gets or sets the width.
  60. /// </summary>
  61. /// <value>The width.</value>
  62. [ProtoMember(9)]
  63. public int? Width { get; set; }
  64. /// <summary>
  65. /// Gets or sets the type of the scan.
  66. /// </summary>
  67. /// <value>The type of the scan.</value>
  68. [ProtoMember(10)]
  69. public string ScanType { get; set; }
  70. /// <summary>
  71. /// Gets or sets the average frame rate.
  72. /// </summary>
  73. /// <value>The average frame rate.</value>
  74. [ProtoMember(11)]
  75. public float? AverageFrameRate { get; set; }
  76. /// <summary>
  77. /// Gets or sets the real frame rate.
  78. /// </summary>
  79. /// <value>The real frame rate.</value>
  80. [ProtoMember(12)]
  81. public float? RealFrameRate { get; set; }
  82. /// <summary>
  83. /// Gets or sets the profile.
  84. /// </summary>
  85. /// <value>The profile.</value>
  86. [ProtoMember(13)]
  87. public string Profile { get; set; }
  88. /// <summary>
  89. /// Gets or sets the type.
  90. /// </summary>
  91. /// <value>The type.</value>
  92. [ProtoMember(14)]
  93. public MediaStreamType Type { get; set; }
  94. /// <summary>
  95. /// Gets or sets the aspect ratio.
  96. /// </summary>
  97. /// <value>The aspect ratio.</value>
  98. [ProtoMember(15)]
  99. public string AspectRatio { get; set; }
  100. /// <summary>
  101. /// Gets or sets the index.
  102. /// </summary>
  103. /// <value>The index.</value>
  104. [ProtoMember(16)]
  105. public int Index { get; set; }
  106. /// <summary>
  107. /// Gets or sets a value indicating whether this instance is external.
  108. /// </summary>
  109. /// <value><c>true</c> if this instance is external; otherwise, <c>false</c>.</value>
  110. [ProtoMember(17)]
  111. public bool IsExternal { get; set; }
  112. /// <summary>
  113. /// Gets or sets the filename.
  114. /// </summary>
  115. /// <value>The filename.</value>
  116. [ProtoMember(18)]
  117. public string Path { get; set; }
  118. }
  119. /// <summary>
  120. /// Enum MediaStreamType
  121. /// </summary>
  122. public enum MediaStreamType
  123. {
  124. /// <summary>
  125. /// The audio
  126. /// </summary>
  127. Audio,
  128. /// <summary>
  129. /// The video
  130. /// </summary>
  131. Video,
  132. /// <summary>
  133. /// The subtitle
  134. /// </summary>
  135. Subtitle
  136. }
  137. }