[*] 结构调整

This commit is contained in:
acgist
2023-04-07 08:09:20 +08:00
parent 5efa09d3ce
commit 2ae6fbdf0a
40 changed files with 958 additions and 602 deletions

View File

@@ -1603,6 +1603,7 @@ class Taoyao extends RemoteClient {
setTimeout(() => audioTrack.stop(), 30000);
});
}
// TODO代码提取
if (self.dataProduce || self.audioProduce || self.videoProduce) {
const response = await self.request(
protocol.buildMessage("media::transport::webrtc::create", {
@@ -1635,9 +1636,10 @@ class Taoyao extends RemoteClient {
proprietaryConstraints: {
optional: [{ googDscp: true }],
},
additionalSettings:
additionalSettings: {
// TODO加密解密
{ encodedInsertableStreams: false },
encodedInsertableStreams: false
},
});
self.sendTransport.on(
"connect",
@@ -1726,8 +1728,8 @@ class Taoyao extends RemoteClient {
// indicating 'server' here and vice-versa.
role: "auto",
},
iceServers: [],
sctpParameters,
iceServers: [],
additionalSettings: {
// TODO加密解密
encodedInsertableStreams: false,