[*] 日常优化
This commit is contained in:
@@ -2306,31 +2306,6 @@ class Taoyao extends RemoteClient {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭房间信令
|
||||
*/
|
||||
async roomClose() {
|
||||
const me = this;
|
||||
me.push(protocol.buildMessage("room::close", {
|
||||
roomId: me.roomId,
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭房间信令
|
||||
*
|
||||
* @param {*} message 消息
|
||||
*/
|
||||
defaultRoomClose(message) {
|
||||
const me = this;
|
||||
const { roomId } = message.body;
|
||||
if (me.roomId !== roomId) {
|
||||
return;
|
||||
}
|
||||
console.info("关闭房间", roomId);
|
||||
me.closeRoomMedia();
|
||||
}
|
||||
|
||||
/**
|
||||
* 媒体回调
|
||||
*
|
||||
@@ -2874,6 +2849,31 @@ class Taoyao extends RemoteClient {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭房间信令
|
||||
*/
|
||||
async roomClose() {
|
||||
this.push(protocol.buildMessage("room::close", {
|
||||
roomId: this.roomId,
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭房间信令
|
||||
*
|
||||
* @param {*} message 信令消息
|
||||
*/
|
||||
defaultRoomClose(message) {
|
||||
const {
|
||||
roomId
|
||||
} = message.body;
|
||||
if (roomId !== this.roomId) {
|
||||
return;
|
||||
}
|
||||
console.info("关闭房间", roomId);
|
||||
this.closeRoomMedia();
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建房间信令
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user