[*] 判断优化

This commit is contained in:
acgist
2024-01-23 11:51:15 +08:00
parent a3644cbb13
commit d4dab26a05
2 changed files with 2 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ public class Room extends CloseableClient implements RouterCallback {
"forceTcp", false, "forceTcp", false,
"producing", false, "producing", false,
"consuming", true, "consuming", true,
"sctpCapabilities", this.dataProduce ? this.sctpCapabilities : null "sctpCapabilities", this.dataConsume ? this.sctpCapabilities : null
), ),
response -> { response -> {
this.nativeCreateRecvTransport(this.nativeRoomPointer, JSONUtils.toJSON(response.body())); this.nativeCreateRecvTransport(this.nativeRoomPointer, JSONUtils.toJSON(response.body()));

View File

@@ -2839,7 +2839,7 @@ class Taoyao extends RemoteClient {
forceTcp : this.forceTcp, forceTcp : this.forceTcp,
producing : false, producing : false,
consuming : true, consuming : true,
sctpCapabilities: this.dataProduce ? this.mediasoupDevice.sctpCapabilities : undefined, sctpCapabilities: this.dataConsume ? this.mediasoupDevice.sctpCapabilities : undefined,
})); }));
const { const {
transportId, transportId,