Explorar o código

buffer up to 2x pre buffer size

Gil Pedersen %!s(int64=13) %!d(string=hai) anos
pai
achega
fd233fefa2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/reader.js

+ 1 - 1
lib/reader.js

@@ -118,7 +118,7 @@ function HlsStreamReader(src, options) {
 
   if (this.prebufferSize) {
     var lwm = options.lowWaterMark || 0;
-    var hwm = options.highWaterMark || this.prebufferSize;
+    var hwm = options.highWaterMark || this.prebufferSize * 2;
     options.lowWaterMark = Math.max(this.prebufferSize, lwm);
     options.highWaterMark = Math.max(hwm, lwm);
     this.once('readable', function() {