FilterCam icon indicating copy to clipboard operation
FilterCam copied to clipboard

Don't flip from front to back camera

Open Dhavalbhimani007 opened this issue 3 years ago • 1 comments

We can not flip from front to back camera after open camera.

Dhavalbhimani007 avatar Aug 27 '20 04:08 Dhavalbhimani007

hey, @Dhavalbhimani007 this project doesn't support flip the camera, to do so you need to copy the files and extract these lines from the FilterCamViewController.

recorder = Recorder(ciContext: ciContext, devicePosition: devicePosition, preset: videoQuality)
recorder.delegate = self

The Recorder object needs the camera position and how this is been set up on the viewDidLoad method, you can change at runtime. When you extract those lines of code then you can set the camera and re-called this code again.

martin3zra avatar Aug 28 '20 19:08 martin3zra