This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

android Record video

 
Beka Kukhalashvili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

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
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Beka Kukhalashvili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic