saki4510t / AudioVideoRecordingSample

Simultaneous audio and video recording sample using MediaCodec/MediaMuxer
Apache License 2.0
950 stars 291 forks source link

How can I switch the camera? #16

Open PrateekPS opened 7 years ago

PrateekPS commented 7 years ago

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.

lumyus commented 6 years ago

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

ShagunParikh commented 6 years ago

@lumyus Any updates?

lumyus commented 6 years ago

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

New Features:

ARMEGO commented 6 years ago

How to migrate this old Camera to Camera2 api?

pablogeek commented 3 years ago

would be nice to migrate also to Camera2 Api