I want to create a camera Api on android.i wrote the code, but I have problem.My application can record video on the front and back of the camera together, but when I start recording video, the video's quality is low. For example, my phone has a 8.0 pixel camera and my video I recorded a low 8.0 pixel then I found an article on Google, but it does work correctly, it's my camera setthing
how can I solve this problem?
Also, I change the camera setthing (like this one)
but it setthings work only back camera and front camera is Logcat error
Smartphone cameras often have different resolution for video than still pictures. They also have different resolutions for the front and rear camera, with the front camera often much lower than the rear.
What you should do is ask both cameras for the available pixels and frame rates, then choose one. You should also do this dynamically so your app is more likely to work on more phones.
i changed back camera setting an it workwell
also i have fronCamera settings method
also have toggle camera to swich front and back camera
and this is a startRecord method
my problem is:how i can create method (meybe if else) to when i start record in a front camera ,FrontCameraSetting() method would be called in a main startRecording() functions ,else if i start record in a backCamera BackCameraSetting() method would be called
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!