Skip to content

Commit 97ded4d

Browse files
committed
fix: workaround for crash on camera switch
1 parent 95ea774 commit 97ded4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/RCTWebRTC/VideoCaptureController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ - (void)applyConstraints:(NSDictionary *)constraints error:(NSError **)outError
182182

183183

184184
if (self.running && hasChanged) {
185+
[self stopCapture];
185186
[self startCapture];
186187
}
187188
}

0 commit comments

Comments
 (0)