From b5c0413ea544e28c4c287a75138c22a57362ec43 Mon Sep 17 00:00:00 2001 From: "quemingyi.wudong" Date: Thu, 26 Jun 2025 20:06:55 +0800 Subject: [PATCH] fix: fix join room bug. --- README.md | 2 ++ src/lib/RtcClient.ts | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ccd4c40..905b655 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,8 @@ yarn dev ### Demo 更新 #### [1.6.0] +- 2025-06-26 + - 修复进房有问题的 BUG - 2025-06-23 - 简化 Demo 使用, 配置归一化。 - 删除无用组件。 diff --git a/src/lib/RtcClient.ts b/src/lib/RtcClient.ts index 9a840f5..a9c715d 100644 --- a/src/lib/RtcClient.ts +++ b/src/lib/RtcClient.ts @@ -127,9 +127,8 @@ export class RTCClient { }; joinRoom = () => { - this.engine.enableAudioPropertiesReport({ interval: 1000 }); - console.log(this.basicInfo); - this.engine.joinRoom( + console.log(' ------ userJoinRoom\n', `roomId: ${this.basicInfo.room_id}\n`, `uid: ${this.basicInfo.user_id}`); + return this.engine.joinRoom( this.basicInfo.token!, `${this.basicInfo.room_id!}`, { @@ -146,7 +145,6 @@ export class RTCClient { roomProfileType: RoomProfileType.chat, } ); - console.log(' ------ userJoinRoom\n', `roomId: ${this.basicInfo.room_id}\n`, `uid: ${this.basicInfo.user_id}`); }; leaveRoom = () => {