Search code examples
iosobjective-cxcodeavcapturesession

Toggle Camera using AVCaptureSession iOS


I'm recording video through AVCaptureSession,while recording when i change/toggle camera session became end/terminated and method didFinishRecordingToOutputFileURL:(NSURL *)outputFileURL called. is there any way to continue recording and toggle camera.


Solution

  • No, Its not possible to toggle camera within same recording session. You can not record single video with two camera.

    if you want result in single video, Try appending video files at the end. You can check following blog for that.