diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-18 01:26:35 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-18 01:26:35 -0400 |
| commit | b7b6f64f0089d7ce4ff8c3c5682fd8ede7311b1b (patch) | |
| tree | bd3bbd9cfb3a66045a5ffc9d9dda3a8c8425a4a4 | |
| parent | a6673ec92ceaac784c1a508f0353cd04b282f376 (diff) | |
add resolution to dlna responses
| -rw-r--r-- | MediaBrowser.Dlna/Server/ControlHandler.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Dlna/Server/ControlHandler.cs b/MediaBrowser.Dlna/Server/ControlHandler.cs index 049eaff65..c3a3c0bf0 100644 --- a/MediaBrowser.Dlna/Server/ControlHandler.cs +++ b/MediaBrowser.Dlna/Server/ControlHandler.cs @@ -465,6 +465,11 @@ namespace MediaBrowser.Dlna.Server res.SetAttribute("nrAudioChannels", targetChannels.Value.ToString(_usCulture)); } + if (targetWidth.HasValue && targetHeight.HasValue) + { + res.SetAttribute("resolution", string.Format("{0}x{1}", targetWidth.Value, targetHeight.Value)); + } + if (targetSampleRate.HasValue) { res.SetAttribute("sampleFrequency", targetSampleRate.Value.ToString(_usCulture)); |
