mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 06:00:47 +02:00
add resolution to dlna responses
This commit is contained in:
parent
a6673ec92c
commit
b7b6f64f00
|
@ -465,6 +465,11 @@ namespace MediaBrowser.Dlna.Server
|
||||||
res.SetAttribute("nrAudioChannels", targetChannels.Value.ToString(_usCulture));
|
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)
|
if (targetSampleRate.HasValue)
|
||||||
{
|
{
|
||||||
res.SetAttribute("sampleFrequency", targetSampleRate.Value.ToString(_usCulture));
|
res.SetAttribute("sampleFrequency", targetSampleRate.Value.ToString(_usCulture));
|
||||||
|
|
Loading…
Reference in a new issue