StreamOptions.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. using System;
  2. namespace MediaBrowser.Model.Dto
  3. {
  4. /// <summary>
  5. /// Class StreamOptions
  6. /// </summary>
  7. [Obsolete]
  8. public class StreamOptions
  9. {
  10. /// <summary>
  11. /// Gets or sets the audio bit rate.
  12. /// </summary>
  13. /// <value>The audio bit rate.</value>
  14. public int? AudioBitRate { get; set; }
  15. /// <summary>
  16. /// Gets or sets the audio codec.
  17. /// Omit to copy the original stream
  18. /// </summary>
  19. /// <value>The audio encoding format.</value>
  20. public string AudioCodec { get; set; }
  21. /// <summary>
  22. /// Gets or sets the item id.
  23. /// </summary>
  24. /// <value>The item id.</value>
  25. public string ItemId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the max audio channels.
  28. /// </summary>
  29. /// <value>The max audio channels.</value>
  30. public int? MaxAudioChannels { get; set; }
  31. /// <summary>
  32. /// Gets or sets the max audio sample rate.
  33. /// </summary>
  34. /// <value>The max audio sample rate.</value>
  35. public int? MaxAudioSampleRate { get; set; }
  36. /// <summary>
  37. /// Gets or sets the start time ticks.
  38. /// </summary>
  39. /// <value>The start time ticks.</value>
  40. public long? StartTimeTicks { get; set; }
  41. /// <summary>
  42. /// Gets or sets a value indicating whether the original media should be served statically
  43. /// Only used with progressive streaming
  44. /// </summary>
  45. /// <value><c>true</c> if static; otherwise, <c>false</c>.</value>
  46. public bool? Static { get; set; }
  47. /// <summary>
  48. /// Gets or sets the output file extension.
  49. /// </summary>
  50. /// <value>The output file extension.</value>
  51. public string OutputFileExtension { get; set; }
  52. /// <summary>
  53. /// Gets or sets the device id.
  54. /// </summary>
  55. /// <value>The device id.</value>
  56. public string DeviceId { get; set; }
  57. }
  58. /// <summary>
  59. /// Class VideoStreamOptions
  60. /// </summary>
  61. [Obsolete]
  62. public class VideoStreamOptions : StreamOptions
  63. {
  64. /// <summary>
  65. /// Gets or sets the video codec.
  66. /// Omit to copy
  67. /// </summary>
  68. /// <value>The video codec.</value>
  69. public string VideoCodec { get; set; }
  70. /// <summary>
  71. /// Gets or sets the video bit rate.
  72. /// </summary>
  73. /// <value>The video bit rate.</value>
  74. public int? VideoBitRate { get; set; }
  75. /// <summary>
  76. /// Gets or sets the width.
  77. /// </summary>
  78. /// <value>The width.</value>
  79. public int? Width { get; set; }
  80. /// <summary>
  81. /// Gets or sets the height.
  82. /// </summary>
  83. /// <value>The height.</value>
  84. public int? Height { get; set; }
  85. /// <summary>
  86. /// Gets or sets the width of the max.
  87. /// </summary>
  88. /// <value>The width of the max.</value>
  89. public int? MaxWidth { get; set; }
  90. /// <summary>
  91. /// Gets or sets the height of the max.
  92. /// </summary>
  93. /// <value>The height of the max.</value>
  94. public int? MaxHeight { get; set; }
  95. /// <summary>
  96. /// Gets or sets the frame rate.
  97. /// </summary>
  98. /// <value>The frame rate.</value>
  99. public double? FrameRate { get; set; }
  100. /// <summary>
  101. /// Gets or sets the index of the audio stream.
  102. /// </summary>
  103. /// <value>The index of the audio stream.</value>
  104. public int? AudioStreamIndex { get; set; }
  105. /// <summary>
  106. /// Gets or sets the index of the video stream.
  107. /// </summary>
  108. /// <value>The index of the video stream.</value>
  109. public int? VideoStreamIndex { get; set; }
  110. /// <summary>
  111. /// Gets or sets the index of the subtitle stream.
  112. /// </summary>
  113. /// <value>The index of the subtitle stream.</value>
  114. public int? SubtitleStreamIndex { get; set; }
  115. /// <summary>
  116. /// Gets or sets the profile.
  117. /// </summary>
  118. /// <value>The profile.</value>
  119. public string Profile { get; set; }
  120. /// <summary>
  121. /// Gets or sets the level.
  122. /// </summary>
  123. /// <value>The level.</value>
  124. public string Level { get; set; }
  125. /// <summary>
  126. /// Gets or sets the baseline stream audio bit rate.
  127. /// </summary>
  128. /// <value>The baseline stream audio bit rate.</value>
  129. public int? BaselineStreamAudioBitRate { get; set; }
  130. /// <summary>
  131. /// Gets or sets a value indicating whether [append baseline stream].
  132. /// </summary>
  133. /// <value><c>true</c> if [append baseline stream]; otherwise, <c>false</c>.</value>
  134. public bool AppendBaselineStream { get; set; }
  135. /// <summary>
  136. /// Gets or sets the time stamp offset ms. Only used with HLS.
  137. /// </summary>
  138. /// <value>The time stamp offset ms.</value>
  139. public int? TimeStampOffsetMs { get; set; }
  140. }
  141. }