createRecvTransport method
Transport
createRecvTransport({
- required String id,
- required IceParameters iceParameters,
- required List<
IceCandidate> iceCandidates, - required DtlsParameters dtlsParameters,
- SctpParameters? sctpParameters,
- List<
RTCIceServer> iceServers = const <RTCIceServer>[], - RTCIceTransportPolicy? iceTransportPolicy,
- Map<
String, dynamic> additionalSettings = const <String, dynamic>{}, - Map<
String, dynamic> proprietaryConstraints = const <String, dynamic>{}, - Map<
String, dynamic> appData = const <String, dynamic>{}, - Function? consumerCallback,
- Function? dataConsumerCallback,
Creates a Transport for receiving media.
@throws {InvalidStateError} if not loaded. @throws {TypeError} if wrong arguments.
Implementation
Transport createRecvTransport({
required String id,
required IceParameters iceParameters,
required List<IceCandidate> iceCandidates,
required DtlsParameters dtlsParameters,
SctpParameters? sctpParameters,
List<RTCIceServer> iceServers = const <RTCIceServer>[],
RTCIceTransportPolicy? iceTransportPolicy,
Map<String, dynamic> additionalSettings = const <String, dynamic>{},
Map<String, dynamic> proprietaryConstraints = const <String, dynamic>{},
Map<String, dynamic> appData = const <String, dynamic>{},
Function? consumerCallback,
Function? dataConsumerCallback,
}) {
_logger.debug('createRecvTransport()');
return _createTransport(
direction: Direction.recv,
id: id,
iceParameters: iceParameters,
iceCandidates: iceCandidates,
dtlsParameters: dtlsParameters,
sctpParameters: sctpParameters,
iceServers: iceServers,
iceTransportPolicy: iceTransportPolicy,
additionalSettings: additionalSettings,
proprietaryConstraints: proprietaryConstraints,
appData: appData,
consumerCallback: consumerCallback,
dataConsumerCallback: dataConsumerCallback,
);
}