MediaStream.cs 4.0 KB

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