• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

android Record video

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic