Xamarin.Android: Implement Zoom use-case using Camera2 > Multi-camera API

450 views Asked by At

I have tried to implement a Multi-camera API to access a Wide-angle camera but no luck. Using the following links, not getting camera Ids on Nokia 7.2, Mi A1, Mi A3, One Plus Nord 2, and Samsung M30s.

Also, I tried to convert Java source code to Xamarin.Android from listed links but some constants are not found in Xamarin.Android (CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA, CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE).

Kindly provide some documentation/guidance to achieve this or suggest any library.

Thanks

1

There are 1 answers

0
Adrain On

According to this document:

To determine if the device supports a logical multi camera, you can look at the capabilities of each camera on the device to see if it supports RequestAvailableCapabilitiesLogicalMultiCamera.

Android Pie also includes a new SessionConfiguration class that can be used to help reduce delays during initial capture and eliminate the need to start and start the camera stream.

For more information about Multi-Camera support in Android P, see Multi-camera support and camera updates.