createPeerConnection function

Future<RTCPeerConnection> createPeerConnection(
  1. Map<String, dynamic> configuration, [
  2. Map<String, dynamic>? constraints
])

Implementation

Future<RTCPeerConnection> createPeerConnection(
    Map<String, dynamic> configuration,
    [Map<String, dynamic>? constraints]) {
  return RTCFactoryWeb.instance
      .createPeerConnection(configuration, constraints);
}