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 = () => {