[*] android信令接入

This commit is contained in:
acgist
2023-03-29 08:16:04 +08:00
parent fcca3c90aa
commit f68119fd30
32 changed files with 397 additions and 128 deletions

View File

@@ -1,6 +1,7 @@
const config = require("./Config.js");
const process = require("child_process");
const WebSocket = require("ws");
const { trace } = require("console");
/**
* 信令协议
@@ -1383,7 +1384,12 @@ class Taoyao {
});
// await transport.enableTraceEvent([ 'probation', 'bwe' ]);
// transport.on("trace", (trace) => {
// console.debug("transport trace", transport.id, trace);
// // 网络评估
// if (trace.type === "bwe" && trace.direction === "out") {
// logger.debug("transport downlinkBwe", trace);
// } else {
// console.debug("transport trace", transport.id, trace);
// }
// });
transport.observer.on("close", () => {
if(room.transports.delete(transport.id)) {