gemercheung 3 лет назад
Родитель
Сommit
af41d471f8
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/scene/stream/stream.service.ts

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

@@ -219,11 +219,12 @@ export class StreamService {
           let isPush: boolean;
           // this.logger.log('statusPack', statusPack);
           if (this.channel && this.channel.isOpen()) {
+            await this.sleep(0.5);
             isPush = this.channel.sendMessageBinary(
               Buffer.from(framePack.buffer),
             );
             if (!isPush) {
-              await this.sleep(5);
+              // await this.sleep(5);
               console.error('流测试推不成功-1试', isPush);
               isPush = this.channel.sendMessageBinary(
                 Buffer.from(framePack.buffer),