mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-18 13:40:45 +01:00
update translations
This commit is contained in:
@@ -36,6 +36,12 @@ namespace MediaBrowser.Model.Dlna
|
||||
/// <value>The context.</value>
|
||||
public EncodingContext Context { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the audio transcoding bitrate.
|
||||
/// </summary>
|
||||
/// <value>The audio transcoding bitrate.</value>
|
||||
public int? AudioTranscodingBitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum bitrate.
|
||||
/// </summary>
|
||||
|
||||
@@ -52,6 +52,9 @@ namespace MediaBrowser.Model.Dlna
|
||||
public int? MaxStreamingBitrate { get; set; }
|
||||
public int? MaxStaticBitrate { get; set; }
|
||||
|
||||
public int? MusicStreamingTranscodingBitrate { get; set; }
|
||||
public int? MusicSyncBitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Controls the content of the X_DLNADOC element in the urn:schemas-dlna-org:device-1-0 namespace.
|
||||
/// </summary>
|
||||
|
||||
@@ -217,10 +217,11 @@ namespace MediaBrowser.Model.Dlna
|
||||
playlistItem.MaxAudioChannels = Math.Min(options.MaxAudioChannels.Value, currentValue);
|
||||
}
|
||||
|
||||
if (!playlistItem.AudioBitrate.HasValue)
|
||||
{
|
||||
playlistItem.AudioBitrate = 128000;
|
||||
}
|
||||
var configuredBitrate = options.AudioTranscodingBitrate ??
|
||||
(options.Context == EncodingContext.Static ? options.Profile.MusicSyncBitrate : options.Profile.MusicStreamingTranscodingBitrate) ??
|
||||
128000;
|
||||
|
||||
playlistItem.AudioBitrate = Math.Min(configuredBitrate, playlistItem.AudioBitrate ?? configuredBitrate);
|
||||
}
|
||||
|
||||
return playlistItem;
|
||||
|
||||
Reference in New Issue
Block a user