[*] 日常优化
This commit is contained in:
@@ -1787,19 +1787,6 @@ class Taoyao extends RemoteClient {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据生产者状态信令
|
||||
*
|
||||
* @param {*} producerId 生产者ID
|
||||
*/
|
||||
async mediaDataProducerStatus(producerId) {
|
||||
const me = this;
|
||||
return await me.request(protocol.buildMessage("media::data::producer::status", {
|
||||
roomId: me.roomId,
|
||||
producerId
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 消费媒体信令
|
||||
*
|
||||
@@ -2056,6 +2043,18 @@ class Taoyao extends RemoteClient {
|
||||
this.mediaDataProducerClose(this.dataProducer?.id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据生产者状态信令
|
||||
*
|
||||
* @param {*} producerId 生产者ID
|
||||
*/
|
||||
async mediaDataProducerStatus(producerId) {
|
||||
return await this.request(protocol.buildMessage("media::data::producer::status", {
|
||||
producerId,
|
||||
roomId: this.roomId,
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 重启ICE信令
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user