فهرست منبع

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

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 11 ماه پیش
والد
کامیت
ce7cbc1f64
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      MediaBrowser.Model/Dlna/StreamBuilder.cs

+ 4 - 1
MediaBrowser.Model/Dlna/StreamBuilder.cs

@@ -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);
                     }