Don't check the misleading options.EnableDirectStream for direct stream availability

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-07-18 01:49:55 +08:00
parent c8f157444c
commit ce7cbc1f64

View File

@ -466,7 +466,10 @@ namespace MediaBrowser.Model.Dlna
{
if (!IsBitrateLimitExceeded(item, options.GetMaxBitrate(true) ?? 0))
{
if (options.EnableDirectStream)
// Note: as of 10.10 codebase, the options.EnableDirectStream is always false due to
// "direct-stream http streaming is currently broken"
// Don't check that option for audio as we always assume that is supported
if (transcodeReasons == TranscodeReason.ContainerNotSupported)
{
return (directPlayProfile, PlayMethod.DirectStream, transcodeReasons);
}