createSendTransportFromMap method
Implementation
Transport createSendTransportFromMap(
Map data, {
Function? producerCallback,
Function? dataProducerCallback,
}) {
return createSendTransport(
id: data['id'],
iceParameters: IceParameters.fromMap(data['iceParameters']),
iceCandidates: List<IceCandidate>.from(data['iceCandidates']
.map((iceCandidate) => IceCandidate.fromMap(iceCandidate))
.toList()),
dtlsParameters: DtlsParameters.fromMap(data['dtlsParameters']),
sctpParameters: data['sctpParameters'] != null
? SctpParameters.fromMap(data['sctpParameters'])
: null,
iceServers: [],
appData: data['appData'] ?? <String, dynamic>{},
proprietaryConstraints: Map<String, dynamic>.from({
'optional': [
{
'googDscp': true,
}
]
}),
additionalSettings: {
'encodedInsertableStreams': false,
},
producerCallback: producerCallback,
dataProducerCallback: dataProducerCallback,
);
}