8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0993d commit a38c858Copy full SHA for a38c858
common/darwin/Classes/FlutterWebRTCPlugin.m
@@ -628,6 +628,12 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult) result
628
return;
629
}
630
RTCRtpSender* sender = [peerConnection addTrack:track streamIds:streamIds];
631
+ if(sender == nil) {
632
+ result([FlutterError errorWithCode:[NSString stringWithFormat:@"%@Failed",call.method]
633
+ message:[NSString stringWithFormat:@"Error: peerConnection.addTrack failed!"]
634
+ details:nil]);
635
+ return;
636
+ }
637
result([self rtpSenderToMap:sender]);
638
} else if ([@"removeTrack" isEqualToString:call.method]){
639
NSDictionary* argsMap = call.arguments;
0 commit comments