[*] 日常优化

This commit is contained in:
acgist
2023-09-10 08:52:22 +08:00
parent eb4510bf3d
commit dc2334e8b6
3 changed files with 193 additions and 168 deletions

View File

@@ -1905,19 +1905,6 @@ class Taoyao extends RemoteClient {
console.debug("生产者评分", message);
}
/**
* 查询生产者状态信令
*
* @param {*} producerId 生产者ID
*/
async mediaProducerStatus(producerId) {
const me = this;
return await me.request(protocol.buildMessage('media::producer::status', {
roomId: me.roomId,
producerId
}));
}
/**
* 消费媒体信令
*
@@ -2481,6 +2468,18 @@ class Taoyao extends RemoteClient {
}
}
/**
* 查询生产者状态信令
*
* @param {*} producerId 生产者ID
*/
async mediaProducerStatus(producerId) {
return await this.request(protocol.buildMessage("media::producer::status", {
producerId,
roomId: this.roomId,
}));
}
/**
* 关闭通道信令
*