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');
             }
           }