Procházet zdrojové kódy

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

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu před 1 rokem
rodič
revize
ce7cbc1f64
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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);
                     }