Merge pull request #15 from Artiume/Artiume-livetv

Fix MaxBitrate
pull/2160/head
artiume 5 years ago committed by GitHub
commit fd55164410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -505,11 +505,8 @@ namespace MediaBrowser.Api.Playback
} }
if (mediaSource.SupportsTranscoding) if (mediaSource.SupportsTranscoding)
{
if (mediaSource.IsRemote && user.Policy.ForceRemoteSourceTranscoding)
{ {
options.MaxBitrate = GetMaxBitrate(maxBitrate, user); options.MaxBitrate = GetMaxBitrate(maxBitrate, user);
}
// The MediaSource supports direct stream, now test to see if the client supports it // The MediaSource supports direct stream, now test to see if the client supports it
var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase) var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)

Loading…
Cancel
Save