[*] 十年饮冰 难凉热血

This commit is contained in:
acgist
2023-03-10 23:35:24 +08:00
parent 63a37be492
commit 1bf8fbe415
57 changed files with 1593 additions and 393 deletions

View File

@@ -349,9 +349,11 @@ class Taoyao extends RemoteClient {
username,
password,
roomId,
// TODO修改默认关闭
dataConsume = true,
audioConsume = true,
videoConsume = true,
// TODO修改默认关闭
dataProduce = true,
audioProduce = true,
videoProduce = true,
@@ -784,7 +786,7 @@ class Taoyao extends RemoteClient {
return;
}
console.info("关闭房间:", roomId);
me.close();
me.closeMedia();
}
/**
* 创建房间信令
@@ -1450,7 +1452,7 @@ class Taoyao extends RemoteClient {
/**
* 关闭媒体
*/
closeMedia = function () {
closeMedia() {
let self = this;
if (self.sendTransport) {
self.sendTransport.close();
@@ -1460,13 +1462,13 @@ class Taoyao extends RemoteClient {
}
};
/**
* 关闭
* 关闭资源
*/
close = function () {
let self = this;
self.closeMedia();
if (self.signalChannel) {
self.signalChannel.close();
close() {
let me = this;
me.closeMedia();
if (me.signalChannel) {
me.signalChannel.close();
}
};
}