2014-03-25 06:25:03 +01:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-26 16:06:48 +01:00
|
|
|
|
using System.Xml.Serialization;
|
2016-12-09 08:23:09 +01:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
2014-03-25 06:25:03 +01:00
|
|
|
|
|
2014-04-02 00:23:07 +02:00
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
2014-03-13 20:08:02 +01:00
|
|
|
|
{
|
|
|
|
|
public class TranscodingProfile
|
|
|
|
|
{
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("container")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public string Container { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("type")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public DlnaProfileType Type { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("videoCodec")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public string VideoCodec { get; set; }
|
2014-03-26 16:06:48 +01:00
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("audioCodec")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public string AudioCodec { get; set; }
|
2014-03-18 02:45:41 +01:00
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("protocol")]
|
2014-03-28 20:58:18 +01:00
|
|
|
|
public string Protocol { get; set; }
|
2016-04-21 06:04:57 +02:00
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("estimateContentLength")]
|
2014-03-23 01:48:34 +01:00
|
|
|
|
public bool EstimateContentLength { get; set; }
|
2014-03-26 16:06:48 +01:00
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("enableMpegtsM2TsMode")]
|
2014-03-25 06:25:03 +01:00
|
|
|
|
public bool EnableMpegtsM2TsMode { get; set; }
|
2014-03-26 16:06:48 +01:00
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("transcodeSeekInfo")]
|
2014-03-23 01:48:34 +01:00
|
|
|
|
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("copyTimestamps")]
|
2016-02-20 07:57:17 +01:00
|
|
|
|
public bool CopyTimestamps { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("context")]
|
2014-07-17 05:17:14 +02:00
|
|
|
|
public EncodingContext Context { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("enableSubtitlesInManifest")]
|
2016-07-13 21:16:51 +02:00
|
|
|
|
public bool EnableSubtitlesInManifest { get; set; }
|
|
|
|
|
|
2016-12-09 08:23:09 +01:00
|
|
|
|
[XmlAttribute("maxAudioChannels")]
|
2016-05-14 07:40:01 +02:00
|
|
|
|
public string MaxAudioChannels { get; set; }
|
|
|
|
|
|
2017-03-17 21:23:34 +01:00
|
|
|
|
[XmlAttribute("minSegments")]
|
|
|
|
|
public int MinSegments { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("segmentLength")]
|
|
|
|
|
public int SegmentLength { get; set; }
|
|
|
|
|
|
2017-03-31 21:05:19 +02:00
|
|
|
|
[XmlAttribute("breakOnNonKeyFrames")]
|
|
|
|
|
public bool BreakOnNonKeyFrames { get; set; }
|
|
|
|
|
|
2017-08-19 21:43:35 +02:00
|
|
|
|
public string[] GetAudioCodecs()
|
2014-03-25 06:25:03 +01:00
|
|
|
|
{
|
2017-08-19 21:43:35 +02:00
|
|
|
|
return ContainerProfile.SplitValue(AudioCodec);
|
2014-03-25 06:25:03 +01:00
|
|
|
|
}
|
2014-03-18 02:45:41 +01:00
|
|
|
|
}
|
2014-03-13 20:08:02 +01:00
|
|
|
|
}
|