With User Media, I want to make a camera app for android which able switch camera front or Back.
I dont know how can i do it using camera. Please help me....
NB: I Think its related to "zero based index of the camera source" on Camera request.
"Zero based" means that 0 is the starting number instead of 1. In most computer-related stuff, you start counting with 0 (it doesn't mean "nothing", it is simply the first available number). So 0, 1, 2, 3, 4, 5 instead of 1, 2, 3, 4, 5, 6.
Thanks for your easy explanation. Then how can i switch front and back camera using it?
C-7
Develop games in your browser. Powerful, performant & highly capable.
I haven't tried to use a camera, but I assume one camera is at index 0 and the other is index 1.