add resolution to dlna responses

This commit is contained in:
Luke Pulverenti 2014-04-18 01:26:35 -04:00
parent a6673ec92c
commit b7b6f64f00

View file

@ -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));