fix: fix join room bug.

This commit is contained in:
quemingyi.wudong 2025-06-26 20:06:55 +08:00
parent fcf8b920dd
commit b5c0413ea5
2 changed files with 4 additions and 4 deletions

View File

@ -87,6 +87,8 @@ yarn dev
### Demo 更新
#### [1.6.0]
- 2025-06-26
- 修复进房有问题的 BUG
- 2025-06-23
- 简化 Demo 使用, 配置归一化。
- 删除无用组件。

View File

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