aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Dlna/DirectPlayProfile.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-22 16:50:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-22 16:50:28 -0400
commit9b294c8bc96b31f6c458cc47fa8d330be2df086a (patch)
treea45f20a51af3842097e1ca98ff7653a6a8523675 /MediaBrowser.Controller/Dlna/DirectPlayProfile.cs
parente2c01947443379f38f55bc9fed223c92410b4e10 (diff)
add more codecs to direct play profiles
Diffstat (limited to 'MediaBrowser.Controller/Dlna/DirectPlayProfile.cs')
-rw-r--r--MediaBrowser.Controller/Dlna/DirectPlayProfile.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Dlna/DirectPlayProfile.cs b/MediaBrowser.Controller/Dlna/DirectPlayProfile.cs
index 29665cbec7..53d32a2f8d 100644
--- a/MediaBrowser.Controller/Dlna/DirectPlayProfile.cs
+++ b/MediaBrowser.Controller/Dlna/DirectPlayProfile.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
+using System.Linq;
namespace MediaBrowser.Controller.Dlna
{
public class DirectPlayProfile
{
public string[] Containers { get; set; }
- public string[] AudioCodecs { get; set; }
- public string[] VideoCodecs { get; set; }
+ public string AudioCodec { get; set; }
+ public string VideoCodec { get; set; }
public DlnaProfileType Type { get; set; }
@@ -16,10 +17,18 @@ namespace MediaBrowser.Controller.Dlna
{
Conditions = new List<ProfileCondition>();
- AudioCodecs = new string[] { };
- VideoCodecs = new string[] { };
Containers = new string[] { };
}
+
+ public List<string> GetAudioCodecs()
+ {
+ return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
+ }
+
+ public List<string> GetVideoCodecs()
+ {
+ return (VideoCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
+ }
}
public enum DlnaProfileType