2014-03-22 20:50:28 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2014-03-22 19:37:15 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Dlna
|
|
|
|
|
{
|
|
|
|
|
public class MediaProfile
|
|
|
|
|
{
|
|
|
|
|
public string Container { get; set; }
|
2014-03-22 20:50:28 +00:00
|
|
|
|
public string AudioCodec { get; set; }
|
|
|
|
|
public string VideoCodec { get; set; }
|
|
|
|
|
|
2014-03-22 19:37:15 +00:00
|
|
|
|
public DlnaProfileType Type { get; set; }
|
|
|
|
|
public string OrgPn { get; set; }
|
|
|
|
|
public string MimeType { get; set; }
|
|
|
|
|
|
2014-03-23 19:36:25 +00:00
|
|
|
|
public ProfileCondition[] Conditions { get; set; }
|
|
|
|
|
|
|
|
|
|
public MediaProfile()
|
|
|
|
|
{
|
|
|
|
|
Conditions = new ProfileCondition[] {};
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-22 20:50:28 +00:00
|
|
|
|
public List<string> GetAudioCodecs()
|
|
|
|
|
{
|
|
|
|
|
return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> GetVideoCodecs()
|
2014-03-22 19:37:15 +00:00
|
|
|
|
{
|
2014-03-22 20:50:28 +00:00
|
|
|
|
return (VideoCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
|
2014-03-22 19:37:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|