gemercheung 3 年之前
父節點
當前提交
1c6ec748df
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/scene/stream/stream.service.ts

+ 2 - 1
src/scene/stream/stream.service.ts

@@ -222,6 +222,7 @@ export class StreamService {
           framePack.setUint32(24, 0);
           framePack.setUint32(28, 0);
           framePack.setUint32(this.block - 4, steamByteLength);
+          steamByteLength += currentSlice.byteLength;
           // const isLastFrame = framePack.byteLength - this.chunk_size < 0;
 
           // this.logger.log('statusPack', statusPack);
@@ -230,7 +231,7 @@ export class StreamService {
               Buffer.from(framePack.buffer),
             );
             if (isPush) {
-              steamByteLength += currentSlice.byteLength;
+              console.log('slice push');
             }
           }