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

+ 4 - 3
src/scene/scene.service.ts

@@ -882,10 +882,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
     if (hasPush.done) {
       this.isJoystickHasStream = true;
       console.log('joystick-hasPush', hasPush);
+      // if (this.isJoystickHasStream) {
+      //   await this.sleep(20);
+      // }
+      await this.sleep(20);
       this.frameCnt.next(hasPush.frame);
-      if (this.isJoystickHasStream) {
-        await this.sleep(20);
-      }
       this.moveService.sendingFrameForJoystick = false;
       const data = joystickRes as StreamReplyType;
       console.log('handlejoystick-isIDR:' + data.isIDR);