[*] 每日优化

This commit is contained in:
acgist
2023-05-14 09:56:32 +08:00
parent 8430fa78a8
commit 9db40b629d
15 changed files with 85 additions and 44 deletions

View File

@@ -1539,6 +1539,7 @@ class Taoyao extends RemoteClient {
this.callbackError("无效房间");
return;
}
// TODO已经进入房间忽略
me.roomId = roomId;
const response = await me.request(
protocol.buildMessage("media::router::rtp::capabilities", {
@@ -1581,6 +1582,7 @@ class Taoyao extends RemoteClient {
if (clientId === me.clientId) {
// 忽略自己
} else {
// TODO已经存在忽略
me.remoteClients.set(clientId, new RemoteClient(status));
}
}
@@ -1634,6 +1636,7 @@ class Taoyao extends RemoteClient {
const me = this;
// 默认进入,如果需要确认使用回调函数重写。
const { roomId, password } = message.body;
// TODO已经进入房间拒绝
// if(me.roomId) {
// this.callbackError();
// return;