diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-13 16:35:12 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-13 16:35:12 -0400 |
| commit | 38ccaad717e3f647c51c43a7f98bc445520a3fe6 (patch) | |
| tree | 57ce62eb5a577df28981dd2590cdc1ef4d5bcd42 | |
| parent | 1c0b8b2b2a785916b40d5e08cbe00b121c549fdf (diff) | |
finish restoring profiles
| -rw-r--r-- | MediaBrowser.Dlna/DlnaManager.cs | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.cs index a30002609..468053740 100644 --- a/MediaBrowser.Dlna/DlnaManager.cs +++ b/MediaBrowser.Dlna/DlnaManager.cs @@ -130,19 +130,32 @@ namespace MediaBrowser.Dlna } }; - var profile5 = new DlnaProfile - { - Name = "Sony Bravia TV (2012)", - ClientType = "TV", - FriendlyName = @"BRAVIA KDL-\d{2}[A-Z]X\d5(\d|G).*" - }; + var profile5 = GetDefaultProfile(); + profile5.Name = "Sony Bravia TV (2012)"; + profile5.ClientType = "TV"; + profile5.FriendlyName = @"BRAVIA KDL-\d{2}[A-Z]X\d5(\d|G).*"; //WDTV does not need any transcoding of the formats we support statically var profile6 = new DlnaProfile { Name = "WDTV Live [Profile]", ClientType = "DLNA", - ModelName = "WD TV HD Live" + ModelName = "WD TV HD Live", + + DirectPlayProfiles = new[] + { + new DirectPlayProfile + { + Containers = new[]{"mp3", "flac", "m4a", "wma"}, + Type = DlnaProfileType.Audio + }, + + new DirectPlayProfile + { + Containers = new[]{"avi", "mp4", "mkv", "ts"}, + Type = DlnaProfileType.Video + } + } }; var profile7 = new DlnaProfile @@ -168,7 +181,22 @@ namespace MediaBrowser.Dlna public DlnaProfile GetDefaultProfile() { - return new DlnaProfile(); + return new DlnaProfile + { + TranscodingProfiles = new[] + { + new TranscodingProfile + { + Container = "mp3", + Type = DlnaProfileType.Audio + }, + new TranscodingProfile + { + Container = "ts", + Type = DlnaProfileType.Video + } + } + }; } public DlnaProfile GetProfile(string friendlyName, string modelName, string modelNumber) |
