gemercheung 3 年 前
コミット
7b17dc546d
2 ファイル変更2 行追加2 行削除
  1. 1 1
      src/ActionsHandler.js
  2. 1 1
      src/h264Decoder/VDecoder.js

+ 1 - 1
src/ActionsHandler.js

@@ -504,7 +504,7 @@ export default class ActionsHandler {
     fetchData({sFrame: sfns, eFrame: efns}){
         if(window.workerReady){
             this.vDecoder.fetch({
-                path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/earth",
+                path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/1011",
                 range: [sfns, efns],
               });
         }

+ 1 - 1
src/h264Decoder/VDecoder.js

@@ -143,7 +143,7 @@ export class VDecoder extends EventEmitter {
       this.decoding = false;
       this.decodingId = null;
       tempId = 0;
-      this.emit("decodeDone", clip.id);
+      clip && clip.id && this.emit("decodeDone", clip.id);
     }
   }
   flush() {