2014-03-25 06:25:03 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2014-03-26 16:06:48 +01:00
|
|
|
|
using System.Xml.Serialization;
|
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
|
|
|
|
|
{
|
2014-03-26 16:06:48 +01:00
|
|
|
|
[XmlAttribute("container")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public string Container { get; set; }
|
|
|
|
|
|
2014-03-26 16:06:48 +01:00
|
|
|
|
[XmlAttribute("type")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public DlnaProfileType Type { get; set; }
|
|
|
|
|
|
2014-03-26 16:06:48 +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
|
|
|
|
|
|
|
|
|
[XmlAttribute("audioCodec")]
|
2014-03-13 20:08:02 +01:00
|
|
|
|
public string AudioCodec { get; set; }
|
2014-03-18 02:45:41 +01:00
|
|
|
|
|
2014-03-28 20:58:18 +01:00
|
|
|
|
[XmlAttribute("protocol")]
|
|
|
|
|
public string Protocol { get; set; }
|
|
|
|
|
|
2014-03-26 16:06:48 +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
|
|
|
|
|
|
|
|
|
[XmlAttribute("enableMpegtsM2TsMode")]
|
2014-03-25 06:25:03 +01:00
|
|
|
|
public bool EnableMpegtsM2TsMode { get; set; }
|
2014-03-26 16:06:48 +01:00
|
|
|
|
|
|
|
|
|
[XmlAttribute("transcodeSeekInfo")]
|
2014-03-23 01:48:34 +01:00
|
|
|
|
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
|
|
|
|
|
|
2014-04-01 06:16:25 +02:00
|
|
|
|
[XmlAttribute("videoProfile")]
|
|
|
|
|
public string VideoProfile { get; set; }
|
2014-03-25 06:25:03 +01:00
|
|
|
|
|
|
|
|
|
public List<string> GetAudioCodecs()
|
|
|
|
|
{
|
2014-04-02 00:23:07 +02:00
|
|
|
|
return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrEmpty(i)).ToList();
|
2014-03-25 06:25:03 +01:00
|
|
|
|
}
|
2014-03-18 02:45:41 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-23 01:48:34 +01:00
|
|
|
|
public enum TranscodeSeekInfo
|
|
|
|
|
{
|
|
|
|
|
Auto = 0,
|
|
|
|
|
Bytes = 1
|
2014-03-13 20:08:02 +01:00
|
|
|
|
}
|
|
|
|
|
}
|