StreamRequest.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using MediaBrowser.Controller.MediaEncoding;
  2. using MediaBrowser.Model.Services;
  3. namespace MediaBrowser.Api.Playback
  4. {
  5. /// <summary>
  6. /// Class StreamRequest.
  7. /// </summary>
  8. public class StreamRequest : BaseEncodingJobOptions
  9. {
  10. [ApiMember(Name = "DeviceProfileId", Description = "Optional. The dlna device profile id to utilize.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  11. public string DeviceProfileId { get; set; }
  12. public string Params { get; set; }
  13. public string PlaySessionId { get; set; }
  14. public string Tag { get; set; }
  15. public string SegmentContainer { get; set; }
  16. public int? SegmentLength { get; set; }
  17. public int? MinSegments { get; set; }
  18. }
  19. public class VideoStreamRequest : StreamRequest
  20. {
  21. /// <summary>
  22. /// Gets a value indicating whether this instance has fixed resolution.
  23. /// </summary>
  24. /// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
  25. public bool HasFixedResolution => Width.HasValue || Height.HasValue;
  26. public bool EnableSubtitlesInManifest { get; set; }
  27. }
  28. }