2018-12-14 09:40:55 +00:00
|
|
|
using MediaBrowser.Controller.MediaEncoding;
|
|
|
|
using MediaBrowser.Model.Services;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api.Playback
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-15 22:37:52 +00:00
|
|
|
/// Class StreamRequest.
|
2018-12-14 09:40:55 +00:00
|
|
|
/// </summary>
|
|
|
|
public class StreamRequest : BaseEncodingJobOptions
|
|
|
|
{
|
|
|
|
[ApiMember(Name = "DeviceProfileId", Description = "Optional. The dlna device profile id to utilize.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
|
|
|
public string DeviceProfileId { get; set; }
|
|
|
|
|
|
|
|
public string Params { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2018-12-14 09:40:55 +00:00
|
|
|
public string PlaySessionId { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2018-12-14 09:40:55 +00:00
|
|
|
public string Tag { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2018-12-14 09:40:55 +00:00
|
|
|
public string SegmentContainer { get; set; }
|
|
|
|
|
|
|
|
public int? SegmentLength { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2018-12-14 09:40:55 +00:00
|
|
|
public int? MinSegments { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class VideoStreamRequest : StreamRequest
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a value indicating whether this instance has fixed resolution.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
|
2019-01-13 20:31:14 +00:00
|
|
|
public bool HasFixedResolution => Width.HasValue || Height.HasValue;
|
2018-12-14 09:40:55 +00:00
|
|
|
|
|
|
|
public bool EnableSubtitlesInManifest { get; set; }
|
|
|
|
}
|
|
|
|
}
|