diff --git a/ios/Classes/FlutterRTCMediaStream.m b/ios/Classes/FlutterRTCMediaStream.m index 48267a341f..86f932215a 100755 --- a/ios/Classes/FlutterRTCMediaStream.m +++ b/ios/Classes/FlutterRTCMediaStream.m @@ -291,6 +291,9 @@ - (void)getUserVideo:(NSDictionary *)constraints if (videoDevice) { RTCVideoSource *videoSource = [self.peerConnectionFactory videoSource]; + if (self.videoCapturer) { + [self.videoCapturer stopCapture]; + } self.videoCapturer = [[RTCCameraVideoCapturer alloc] initWithDelegate:videoSource]; AVCaptureDeviceFormat *selectedFormat = [self selectFormatForDevice:videoDevice]; NSInteger selectedFps = [self selectFpsForFormat:selectedFormat];