front-camera

How to make video captured by front camera not being inverse Android?

▼魔方 西西 提交于 2019-11-26 12:17:49
问题 I recording video using MediaRecorder.When using back-camera,it working fine,but when using front camera,the video captured is being flipped/inverse.Means that the item in right,will appear on the left.The camera preview is working fine,just final captured video flipped. Here is the camera preview looks like But the final video appear like this (all the item in left hand side,appear on right hand side) What I tried so far: I tried to apply the matrix when prepare recorder,but it seems does

Switch cameras with avcapturesession

我是研究僧i 提交于 2019-11-26 09:29:41
问题 Using this tutorial here: http://www.musicalgeometry.com/?p=1297 I have created a custom overlay and image capture with AVCaptureSession . I am attempting to allow the user to switch between the front and back camera. Here is my code in CaptureSessionManager to switch cameras: - (void)addVideoInputFrontCamera:(BOOL)front { NSArray *devices = [AVCaptureDevice devices]; AVCaptureDevice *frontCamera; AVCaptureDevice *backCamera; for (AVCaptureDevice *device in devices) { //NSLog(@\"Device name: