[*] 日常优化

This commit is contained in:
acgist
2023-10-11 08:00:08 +08:00
parent f86faee977
commit 69be5ada9b
3 changed files with 71 additions and 70 deletions

View File

@@ -1460,12 +1460,11 @@ class Taoyao extends RemoteClient {
* @param {*} clientId 终端ID
* @param {*} enabled 录制状态
*/
controlServerRecord(clientId, enabled) {
const me = this;
me.request(protocol.buildMessage("control::server::record", {
to : clientId,
roomId : me.roomId,
enabled: enabled
async controlServerRecord(clientId, enabled) {
return await this.request(protocol.buildMessage("control::server::record", {
enabled,
to : clientId,
roomId: this.roomId,
}));
}