2017-02-02 17:02:01 +01:00
using MediaBrowser.Controller.MediaEncoding ;
using MediaBrowser.Model.Dlna ;
2016-10-25 21:02:04 +02:00
using MediaBrowser.Model.Services ;
2013-02-26 22:53:51 +01:00
namespace MediaBrowser.Api.Playback
{
2013-02-27 05:19:05 +01:00
/// <summary>
/// Class StreamRequest
/// </summary>
2017-02-02 17:02:01 +01:00
public class StreamRequest : BaseEncodingJobOptions
2013-02-26 22:53:51 +01:00
{
2013-02-27 05:19:05 +01:00
/// <summary>
/// Gets or sets the id.
/// </summary>
/// <value>The id.</value>
2013-03-09 03:34:54 +01:00
[ApiMember(Name = "Id", Description = "Item Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
2013-02-26 22:53:51 +01:00
public string Id { get ; set ; }
2014-03-22 17:16:43 +01:00
[ApiMember(Name = "MediaSourceId", Description = "The media version id, if playing an alternate version", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
public string MediaSourceId { get ; set ; }
2014-03-22 04:35:03 +01:00
2013-10-03 16:14:40 +02:00
[ApiMember(Name = "DeviceId", Description = "The device id of the client requesting. Used to stop encoding processes when needed.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
public string DeviceId { get ; set ; }
2014-01-18 06:55:21 +01:00
2017-02-17 22:11:13 +01:00
[ApiMember(Name = "Container", Description = "Container", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
public string Container { get ; set ; }
2013-02-27 05:19:05 +01:00
/// <summary>
/// Gets or sets the audio codec.
/// </summary>
/// <value>The audio codec.</value>
2013-03-09 06:15:51 +01:00
[ApiMember(Name = "AudioCodec", Description = "Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
2014-03-23 21:07:02 +01:00
public string AudioCodec { get ; set ; }
2013-02-26 22:53:51 +01:00
2017-01-29 21:00:29 +01:00
public string SubtitleCodec { get ; set ; }
2014-03-26 16:06:48 +01:00
[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 ; }
2014-02-13 06:11:54 +01:00
public string Params { get ; set ; }
2015-03-29 20:31:28 +02:00
public string PlaySessionId { get ; set ; }
2015-03-29 06:56:39 +02:00
public string LiveStreamId { get ; set ; }
2016-08-13 21:52:58 +02:00
public string Tag { get ; set ; }
2013-03-09 03:34:54 +01:00
}
public class VideoStreamRequest : StreamRequest
{
2014-02-02 17:21:40 +01:00
/// <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>
public bool HasFixedResolution
{
get
{
return Width . HasValue | | Height . HasValue ;
}
}
2014-04-11 17:36:25 +02:00
2016-07-13 21:09:31 +02:00
public bool EnableSubtitlesInManifest { get ; set ; }
2013-02-26 22:53:51 +01:00
}
}