AudioVideoRecordingSample icon indicating copy to clipboard operation
AudioVideoRecordingSample copied to clipboard

How can I switch the camera?

Open PrateekPS opened this issue 7 years ago • 5 comments

How can I switch the camera from front to back and back to front with this code? I have used lot of code to switch camera but always I am getting crash with, when I change the camera id at runtime.

PrateekPS avatar Apr 12 '17 06:04 PrateekPS

I implemented it into a forked one. going to create a pull request soon

lumyus avatar Jul 26 '17 21:07 lumyus

@lumyus Any updates?

ShagunParikh avatar Sep 13 '17 04:09 ShagunParikh

Here is my cloned version called Flexcam. Didnt have the time for a proper pull request. https://github.com/lumyus/FlexCam

New Features:

  • Combine multiple video recordings. (Click Merge)
  • Change front/back camera
  • Progress bar for recording status

lumyus avatar Sep 17 '17 22:09 lumyus

How to migrate this old Camera to Camera2 api?

ARMEGO avatar Nov 28 '17 15:11 ARMEGO

would be nice to migrate also to Camera2 Api

pablogeek avatar Dec 02 '20 11:12 pablogeek