8000 Make 'constraints' argument optional · sinkync/flutter-webrtc@33b2e4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 33b2e4b

Browse files
committed
Make 'constraints' argument optional
1 parent ca2d4e5 commit 33b2e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rtc_peerconnection_factory.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'utils.dart';
55

66
Future<RTCPeerConnection> createPeerConnection(
77
Map<String, dynamic> configuration,
8-
Map<String, dynamic> constraints) async {
8+
[Map<String, dynamic> constraints = const {}]) async {
99
MethodChannel channel = WebRTC.methodChannel();
1010

1111
Map<String, dynamic> defaultConstraints = {

0 commit comments

Comments
 (0)
0