Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching cameras during recording produces video delay and sync issue #298

Open
numen31337 opened this issue Apr 28, 2016 · 4 comments
Open

Comments

@numen31337
Copy link
Contributor

When you recording video and switching camera source during recording, audio is starting to go ahead from video

@amilham
Copy link

amilham commented Jul 15, 2016

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.

@Amalous
Copy link

Amalous commented Apr 26, 2017

Did anyone ever find a solution to this? I get this problem when switching from back to front, but not vice versa.

@freeubi
Copy link

freeubi commented Apr 28, 2017

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.

@Amalous
Copy link

Amalous commented Jun 1, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants