test pc 3 gadi atpakaļ
vecāks
revīzija
7069b7c9b6
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/move/move.service.ts
  2. 1 0
      src/scene/scene.service.ts

+ 1 - 1
src/move/move.service.ts

@@ -447,7 +447,7 @@ export class MoveService implements OnModuleInit {
       const reply = JSON.parse(JSON.stringify(this.reply));
       const reply = JSON.parse(JSON.stringify(this.reply));
       reply.traceIds.push(traceId);
       reply.traceIds.push(traceId);
       reply['newUserStates'][0].userId = userId;
       reply['newUserStates'][0].userId = userId;
-
+      reply['newUserStates'][0].renderInfo.isMoving = 1;
       if (!isFromUser) {
       if (!isFromUser) {
         reply['newUserStates'][0].playerState.player.position = {
         reply['newUserStates'][0].playerState.player.position = {
           x:
           x:

+ 1 - 0
src/scene/scene.service.ts

@@ -663,6 +663,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
             Array.from(walkingRes[i]).forEach(
             Array.from(walkingRes[i]).forEach(
               (item: StreamReplyType, index: number) => {
               (item: StreamReplyType, index: number) => {
                 const IDRflag = index % 5 === 0 ? 1 : 3;
                 const IDRflag = index % 5 === 0 ? 1 : 3;
+                //const IDRflag = item.isIDR ? 1 : 3;
                 const dir = this.isHeaderOrLast(
                 const dir = this.isHeaderOrLast(
                   index,
                   index,
                   walkingRes[i].length - 1,
                   walkingRes[i].length - 1,