Files
jellyfin-jellyfin-1/MediaBrowser.Model/Dlna/TranscodingProfile.cs

52 lines
1.4 KiB
C#
Raw Normal View History

2014-03-25 01:25:03 -04:00
using System.Collections.Generic;
2014-03-26 11:06:48 -04:00
using System.Xml.Serialization;
2014-03-25 01:25:03 -04:00
2014-04-01 18:23:07 -04:00
namespace MediaBrowser.Model.Dlna
2014-03-13 15:08:02 -04:00
{
public class TranscodingProfile
{
2014-03-26 11:06:48 -04:00
[XmlAttribute("container")]
2014-03-13 15:08:02 -04:00
public string Container { get; set; }
2014-03-26 11:06:48 -04:00
[XmlAttribute("type")]
2014-03-13 15:08:02 -04:00
public DlnaProfileType Type { get; set; }
2014-03-26 11:06:48 -04:00
[XmlAttribute("videoCodec")]
2014-03-13 15:08:02 -04:00
public string VideoCodec { get; set; }
2014-03-26 11:06:48 -04:00
[XmlAttribute("audioCodec")]
2014-03-13 15:08:02 -04:00
public string AudioCodec { get; set; }
2014-03-17 21:45:41 -04:00
2014-03-28 15:58:18 -04:00
[XmlAttribute("protocol")]
public string Protocol { get; set; }
2016-04-21 00:04:57 -04:00
2014-03-26 11:06:48 -04:00
[XmlAttribute("estimateContentLength")]
2014-03-22 20:48:34 -04:00
public bool EstimateContentLength { get; set; }
2014-03-26 11:06:48 -04:00
[XmlAttribute("enableMpegtsM2TsMode")]
2014-03-25 01:25:03 -04:00
public bool EnableMpegtsM2TsMode { get; set; }
2014-03-26 11:06:48 -04:00
[XmlAttribute("transcodeSeekInfo")]
2014-03-22 20:48:34 -04:00
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
[XmlAttribute("copyTimestamps")]
public bool CopyTimestamps { get; set; }
2014-07-16 23:17:14 -04:00
[XmlAttribute("context")]
public EncodingContext Context { get; set; }
2016-04-21 00:04:57 -04:00
[XmlAttribute("forceLiveStream")]
public bool ForceLiveStream { get; set; }
2014-03-25 01:25:03 -04:00
public List<string> GetAudioCodecs()
{
2014-05-08 17:23:24 -04:00
List<string> list = new List<string>();
foreach (string i in (AudioCodec ?? string.Empty).Split(','))
{
if (!string.IsNullOrEmpty(i)) list.Add(i);
}
return list;
2014-03-25 01:25:03 -04:00
}
2014-03-17 21:45:41 -04:00
}
2014-03-13 15:08:02 -04:00
}