|
@@ -518,7 +518,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
const joystickRes = await this.moveService.seqExeJoystick(request);
|
|
|
this.logger.log(
|
|
|
'joystick-breakPointId:' +
|
|
|
- this.moveService.users[this.user_id].breakPointId,
|
|
|
+ this.moveService.users[this.user_id].breakPointId,
|
|
|
);
|
|
|
// 有数据 [0]是rotate数据,[1-infinity]是walking数据
|
|
|
this.logger.log('joystickRes-1', joystickRes);
|
|
@@ -859,12 +859,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.rotateframeCnt += 1;
|
|
|
|
|
|
stream.frame = this.rotateframeCnt;
|
|
|
- this._rotateCurrentFame = this.rotateframeCnt;
|
|
|
+ this._rotateCurrentFame += 1;
|
|
|
|
|
|
const IDRflag = this._rotateCurrentFame % 5 === 0 ? 1 : 3;
|
|
|
this.logger.log(
|
|
|
- `当前rotate ,mainframeCnt:${this.frameCnt.getValue()}, rotateframeCnt:${
|
|
|
- this.rotateframeCnt
|
|
|
+ `当前rotate ,mainframeCnt:${this.frameCnt.getValue()}, _rotateCurrentFame:${this._rotateCurrentFame
|
|
|
} IDRflag:${IDRflag}`,
|
|
|
);
|
|
|
stream.DIR = this.rotateFirstIDR ? 1 : IDRflag;
|
|
@@ -896,6 +895,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.frameCnt.next(res.frame);
|
|
|
this.resumeStream();
|
|
|
this.rotateframeCnt = -1;
|
|
|
+ this._rotateCurrentFame = -1;
|
|
|
this.onMoving.next(false);
|
|
|
this.onRotating.next(false);
|
|
|
this.rotateFirstIDR = true;
|