I use AVCaptureVideoPreviewLayer to transmit live video and use openGL shaders in real time. When using the front camera, the mirror is reflected, I want to cancel the mirror before applying the shader.
Can anyone help?
Added: code for switching to the front camera:
-(void)showFrontCamera{ NSLog(@"inside showFrontCamera"); [captureSession removeInput:videoInput];
Manish deora
source share