gemercheung 3 年之前
父节点
当前提交
1ec9ac95fe
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      src/ActionsHandler.js
  2. 2 0
      src/h264Decoder/VDecoder.js

+ 1 - 1
src/ActionsHandler.js

@@ -26,7 +26,7 @@ export default class ActionsHandler {
         //xst
         window.workerReady = false
         this.vDecoder = new VDecoder({   
-            maxChip: 10,
+            maxChip: 3,
           });
         window.vDecoder = this.vDecoder
         this.init()

+ 2 - 0
src/h264Decoder/VDecoder.js

@@ -239,6 +239,8 @@ export class VDecoder extends EventEmitter {
   }
   flush() {
     this.tempVideos = [];
+    this.cacheBufferTotal = null;
+    console.warn('flush')
   }
 
   preloader(preload) {}