SCRecorder
SCRecorder copied to clipboard
Switching cameras during recording produces video delay and sync issue
When you recording video and switching camera source during recording, audio is starting to go ahead from video
I'm experiencing this as well. Switching cameras (front camera to back camera or vice versa) causes the video and audio to go out-of-sync (and sometimes produces popping artifacts in the audio), with the audio getting ahead of the video. I haven't been able to find a solution for this.
Did anyone ever find a solution to this? I get this problem when switching from back to front, but not vice versa.
I'm experiencing this as well. Also i found a solution: before you switch the capturedevice, just pause the recording. Like this:
- (IBAction)changeCameraClicked:(UIButton *)sender { if ([self.recorder isRecording]) { [self.recorder pause]; [self.recorder switchCaptureDevices]; [self.recorder record]; }else { [self.recorder switchCaptureDevices]; } }
So basically the recording stops while the camera is changing.
Thank you!