gemercheung пре 3 година
родитељ
комит
5db1e1187a
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/scene/scene.service.ts

+ 4 - 1
src/scene/scene.service.ts

@@ -1174,7 +1174,10 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
     // this.startStream();
     // this.handleStream();
     this.channel.onBufferedAmountLow(() => {
-      console.log('onBufferedAmountLow');
+      console.error('onBufferedAmountLow');
+      this.logger.error('onBufferedAmountLow');
+      //64k
+      this.channel.setBufferedAmountLowThreshold(65536);
     });
   }