StreamRequest.cs 1.2 KB

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