Are all legacy cameras exposed to camera2 (API level 21)?

Does all level 21 devices require camera2 package expansion for all cameras (e.g. front and back) at least in LEGACY support type?

In other words, is it possible (and indeed it is) for the Android 5 camera to be more functional in keeping with the outdated android.hardware.Camera interface than under the new android.hardware.camera2 interface, or even the camera cannot be found or used as a device android.hardware.camera2?

+3


source to share


2 answers


It is imperative that camera devices are open via android.hardware.camera2 (API2) as well as deprecated android.hardware.Camera (API1).

However, at the LEGACY level, some of the functions available in API1 may not be available in API2. This primarily affects the available recording resolutions, as LEGACY API2 is limited by the maximum preview size available in API1.



Also, any OEM extensions to API1 will not be available through API2.

+5


source


The Camera2 API is very poorly implemented on many phones https://github.com/googlesamples/android-Camera2Basic/issues/123



0


source







All Articles