2017-07-14 15:57:44 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2016-12-09 07:23:09 +00:00
|
|
|
|
using System.Xml.Serialization;
|
2014-03-15 04:14:07 +00:00
|
|
|
|
|
2014-04-01 22:23:07 +00:00
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
2014-03-13 19:08:02 +00:00
|
|
|
|
{
|
|
|
|
|
public class DirectPlayProfile
|
|
|
|
|
{
|
2016-12-09 07:23:09 +00:00
|
|
|
|
[XmlAttribute("container")]
|
2014-03-23 06:07:43 +00:00
|
|
|
|
public string Container { get; set; }
|
2014-03-26 15:06:48 +00:00
|
|
|
|
|
2016-12-09 07:23:09 +00:00
|
|
|
|
[XmlAttribute("audioCodec")]
|
2014-03-22 20:50:28 +00:00
|
|
|
|
public string AudioCodec { get; set; }
|
2014-03-26 15:06:48 +00:00
|
|
|
|
|
2016-12-09 07:23:09 +00:00
|
|
|
|
[XmlAttribute("videoCodec")]
|
2014-03-22 20:50:28 +00:00
|
|
|
|
public string VideoCodec { get; set; }
|
2014-03-15 04:14:07 +00:00
|
|
|
|
|
2016-12-09 07:23:09 +00:00
|
|
|
|
[XmlAttribute("type")]
|
2014-03-13 19:08:02 +00:00
|
|
|
|
public DlnaProfileType Type { get; set; }
|
|
|
|
|
|
2017-07-14 15:57:44 +00:00
|
|
|
|
public bool SupportsContainer(string container)
|
|
|
|
|
{
|
2017-08-04 06:34:46 +00:00
|
|
|
|
return ContainerProfile.ContainsContainer(Container, container);
|
2017-07-14 15:57:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-08-19 19:43:35 +00:00
|
|
|
|
public string[] GetAudioCodecs()
|
2014-03-22 20:50:28 +00:00
|
|
|
|
{
|
2017-08-19 19:43:35 +00:00
|
|
|
|
return ContainerProfile.SplitValue(AudioCodec);
|
2014-03-22 20:50:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-08-19 19:43:35 +00:00
|
|
|
|
public string[] GetVideoCodecs()
|
2014-03-22 20:50:28 +00:00
|
|
|
|
{
|
2017-08-19 19:43:35 +00:00
|
|
|
|
return ContainerProfile.SplitValue(VideoCodec);
|
2014-03-22 20:50:28 +00:00
|
|
|
|
}
|
2014-03-13 19:08:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|