Selaa lähdekoodia

feature: 解决黑胶发送数据的最后一帧问题

zeng.chen 7 kuukautta sitten
vanhempi
commit
384d915121
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pages/piano/cropper/cropper.js

+ 1 - 1
pages/piano/cropper/cropper.js

@@ -288,7 +288,6 @@ Page({
         return;
       }
       const chunk = chunks[i];
-      i++;
       next += chunk.byteLength;
       // next += chunk.length;
       let uint8Array = new Uint8Array(chunk);
@@ -334,6 +333,7 @@ Page({
 
         _this.endImage(2)
       }
+      i++;
     }, 20);
   },
   async delay(ms) {