[*] 判断优化
This commit is contained in:
@@ -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()));
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user