aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Dlna
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-01 00:16:25 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-01 00:16:25 -0400
commit4afe2c3f731562efbe42147d1bcbdc0a7542cfeb (patch)
treecbfa2811dfff4c818d34de926f68be2ef8a78948 /MediaBrowser.Controller/Dlna
parent49b121e87fc4fa9fd74f7eabca47450e6fdccb1c (diff)
updated dlna profile format
Diffstat (limited to 'MediaBrowser.Controller/Dlna')
-rw-r--r--MediaBrowser.Controller/Dlna/DeviceProfile.cs16
-rw-r--r--MediaBrowser.Controller/Dlna/ResponseProfile.cs (renamed from MediaBrowser.Controller/Dlna/MediaProfile.cs)4
-rw-r--r--MediaBrowser.Controller/Dlna/TranscodingProfile.cs23
3 files changed, 12 insertions, 31 deletions
diff --git a/MediaBrowser.Controller/Dlna/DeviceProfile.cs b/MediaBrowser.Controller/Dlna/DeviceProfile.cs
index c1fc713e4..bb9629c28 100644
--- a/MediaBrowser.Controller/Dlna/DeviceProfile.cs
+++ b/MediaBrowser.Controller/Dlna/DeviceProfile.cs
@@ -74,13 +74,13 @@ namespace MediaBrowser.Controller.Dlna
public ContainerProfile[] ContainerProfiles { get; set; }
public CodecProfile[] CodecProfiles { get; set; }
- public MediaProfile[] MediaProfiles { get; set; }
+ public ResponseProfile[] ResponseProfiles { get; set; }
public DeviceProfile()
{
DirectPlayProfiles = new DirectPlayProfile[] { };
TranscodingProfiles = new TranscodingProfile[] { };
- MediaProfiles = new MediaProfile[] { };
+ ResponseProfiles = new ResponseProfile[] { };
CodecProfiles = new CodecProfile[] { };
ContainerProfiles = new ContainerProfile[] { };
@@ -147,11 +147,11 @@ namespace MediaBrowser.Controller.Dlna
});
}
- public MediaProfile GetAudioMediaProfile(string container, string audioCodec, MediaStream audioStream)
+ public ResponseProfile GetAudioMediaProfile(string container, string audioCodec, MediaStream audioStream)
{
container = (container ?? string.Empty).TrimStart('.');
- return MediaProfiles.FirstOrDefault(i =>
+ return ResponseProfiles.FirstOrDefault(i =>
{
if (i.Type != DlnaProfileType.Audio)
{
@@ -174,11 +174,11 @@ namespace MediaBrowser.Controller.Dlna
});
}
- public MediaProfile GetVideoMediaProfile(string container, string audioCodec, string videoCodec, MediaStream audioStream, MediaStream videoStream)
+ public ResponseProfile GetVideoMediaProfile(string container, string audioCodec, string videoCodec, MediaStream audioStream, MediaStream videoStream)
{
container = (container ?? string.Empty).TrimStart('.');
- return MediaProfiles.FirstOrDefault(i =>
+ return ResponseProfiles.FirstOrDefault(i =>
{
if (i.Type != DlnaProfileType.Video)
{
@@ -207,11 +207,11 @@ namespace MediaBrowser.Controller.Dlna
});
}
- public MediaProfile GetPhotoMediaProfile(string container)
+ public ResponseProfile GetPhotoMediaProfile(string container)
{
container = (container ?? string.Empty).TrimStart('.');
- return MediaProfiles.FirstOrDefault(i =>
+ return ResponseProfiles.FirstOrDefault(i =>
{
if (i.Type != DlnaProfileType.Photo)
{
diff --git a/MediaBrowser.Controller/Dlna/MediaProfile.cs b/MediaBrowser.Controller/Dlna/ResponseProfile.cs
index bf3057294..163a95d5a 100644
--- a/MediaBrowser.Controller/Dlna/MediaProfile.cs
+++ b/MediaBrowser.Controller/Dlna/ResponseProfile.cs
@@ -4,7 +4,7 @@ using System.Xml.Serialization;
namespace MediaBrowser.Controller.Dlna
{
- public class MediaProfile
+ public class ResponseProfile
{
[XmlAttribute("container")]
public string Container { get; set; }
@@ -26,7 +26,7 @@ namespace MediaBrowser.Controller.Dlna
public ProfileCondition[] Conditions { get; set; }
- public MediaProfile()
+ public ResponseProfile()
{
Conditions = new ProfileCondition[] {};
}
diff --git a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs
index 707f0c573..704ba54d2 100644
--- a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs
+++ b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs
@@ -30,13 +30,8 @@ namespace MediaBrowser.Controller.Dlna
[XmlAttribute("transcodeSeekInfo")]
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
- public TranscodingSetting[] Settings { get; set; }
-
- public TranscodingProfile()
- {
- Settings = new TranscodingSetting[] { };
- }
-
+ [XmlAttribute("videoProfile")]
+ public string VideoProfile { get; set; }
public List<string> GetAudioCodecs()
{
@@ -44,20 +39,6 @@ namespace MediaBrowser.Controller.Dlna
}
}
- public class TranscodingSetting
- {
- [XmlAttribute("name")]
- public TranscodingSettingType Name { get; set; }
-
- [XmlAttribute("value")]
- public string Value { get; set; }
- }
-
- public enum TranscodingSettingType
- {
- VideoProfile = 0
- }
-
public enum TranscodeSeekInfo
{
Auto = 0,