createPeerConnection function

Future<RTCPeerConnection> createPeerConnection(
  1. Map<String, dynamic> configuration, [
  2. Map<String, dynamic> constraints = const {}
])

Implementation

Future<RTCPeerConnection> createPeerConnection(
    Map<String, dynamic> configuration,
    [Map<String, dynamic> constraints = const {}]) async {
  return RTCFactoryNative.instance
      .createPeerConnection(configuration, constraints);
}