I am trying to implement Custom Camera to record a video. I have followed This sample and it is working fine.
Now, i want to add "Switch Camera" functionality over a Button click. It should be able to Switch between Front/Back Camera even while the video is getting recorded.
Hence please help me to know if it is even possible??
1. If yes then How??
2. If no then Please suggest some workaround??
Some sample codes or links would be very helpful...
Note : I have been googling about it and found some StackOverFlow answers like
Android Camera2 API switch back - front cameras
Android: Switch camera when button clicked
But none of these are giving a facility to switch the camera when the video is being recorded.
Please Help.
The code is same as This sample. And it's the Camera2 API.