|
|
|
@ -110,6 +110,8 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
|
|
|
|
|
public int? AudioBitrate { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? AudioSampleRate { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? VideoBitrate { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? MaxWidth { get; set; }
|
|
|
|
@ -184,7 +186,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.Equals(pair.Name, "Static", StringComparison.OrdinalIgnoreCase) &&
|
|
|
|
|
string.Equals(pair.Value, "false", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
string.Equals(pair.Value, "true", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
@ -250,6 +252,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
list.Add(new NameValuePair("SubtitleStreamIndex", item.SubtitleStreamIndex.HasValue && item.SubtitleDeliveryMethod != SubtitleDeliveryMethod.External ? item.SubtitleStreamIndex.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
|
list.Add(new NameValuePair("VideoBitrate", item.VideoBitrate.HasValue ? item.VideoBitrate.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
|
list.Add(new NameValuePair("AudioBitrate", item.AudioBitrate.HasValue ? item.AudioBitrate.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
|
list.Add(new NameValuePair("AudioSampleRate", item.AudioSampleRate.HasValue ? item.AudioSampleRate.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
|
|
|
|
|
|
list.Add(new NameValuePair("MaxFramerate", item.MaxFramerate.HasValue ? item.MaxFramerate.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
|
list.Add(new NameValuePair("MaxWidth", item.MaxWidth.HasValue ? item.MaxWidth.Value.ToString(CultureInfo.InvariantCulture) : string.Empty));
|
|
|
|
@ -521,7 +524,9 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
var stream = TargetAudioStream;
|
|
|
|
|
return stream == null ? null : stream.SampleRate;
|
|
|
|
|
return AudioSampleRate.HasValue && !IsDirectStream
|
|
|
|
|
? AudioSampleRate
|
|
|
|
|
: stream == null ? null : stream.SampleRate;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|