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.
2 parents 5c3852a + ad572b6 commit b7a2c6eCopy full SHA for b7a2c6e
ios/Classes/FlutterRTCMediaStream.m
@@ -291,6 +291,9 @@ - (void)getUserVideo:(NSDictionary *)constraints
291
292
if (videoDevice) {
293
RTCVideoSource *videoSource = [self.peerConnectionFactory videoSource];
294
+ if (self.videoCapturer) {
295
+ [self.videoCapturer stopCapture];
296
+ }
297
self.videoCapturer = [[RTCCameraVideoCapturer alloc] initWithDelegate:videoSource];
298
AVCaptureDeviceFormat *selectedFormat = [self selectFormatForDevice:videoDevice];
299
NSInteger selectedFps = [self selectFpsForFormat:selectedFormat];
0 commit comments