gemercheung před 3 roky
rodič
revize
5cce84b795
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      src/scene/stream/stream.service.ts

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

@@ -223,9 +223,9 @@ export class StreamService {
           }
 
           if (i === slices) {
+            this.onSteaming.next(false);
+            steamByteLength = 0;
             if (isPush) {
-              this.onSteaming.next(false);
-              steamByteLength = 0;
               // debugger;
               const stop = performance.now();
               const inMillSeconds = stop - start;
@@ -237,6 +237,7 @@ export class StreamService {
             } else {
               return resolve({ frame: stream.frame, done: false });
             }
+
           }
         }
         // let steamByteLength = 0;