val recorderBuilder = Recorder.Builder() .setQualitySelector(QualitySelector.from(Quality.HD))
Camera2Interop.Extender(recorderBuilder) .setPhysicalCameraId(PHYSICAL_CAMERA_ID
I need help to solve my issue here is code and help to set physical id for video recorder as well ..note when i use for physical id for capture it open wide angel but it does not preview same like wide angle but look like normal camera preview even wide angle lense open LaunchedEffect(Unit) {
cameraProviderFuture.addListener({| Leo Huang | can you response of my code please Wide Angle video is opened but one issue still left that it is opening the lense but preview is not look wide angle or 0.5x zoom out ..it looks like same default camera preview .. iam sharing you my code again still looking help for preview like wide angle here is my updated code |
Hi,
Thanks for providing the code and detailed information.
When using Camera2Interop to set a physical camera ID for a UseCase, the same physical camera ID will be used for all UseCases that are bound together. The API documentation mentions that it "doesn't support binding use cases with different physical camera IDs."
I tested your code on a Pixel 9 with CameraX version 1.5.1, and I was able to see the wide-angle effect in both the preview and the video capture.
To help you debug, you can confirm that the physical camera ID is being applied to all camera streams by using the following adb command while the camera preview is running:
The output should show the same physical camera ID for each stream, as in the example below:
Hi Leo,
Actually, I don’t have the device right now — it will arrive on Monday. When I did have the device, I checked that the wide-angle lens opened successfully, but the preview looked like 1x zoom instead of 0.5x zoom.
I have one more question for you, since you’re the only person who can really help me with the wide-angle issue.
The problem is that on the Xiaomi Note 10, it doesn’t provide physical camera IDs, so how can I open the wide-angle camera in that case?
Also, what about Samsung devices that support wide-angle? What changes should I make in the code for Samsung? I need to handle Samsung devices as well.
Thanks!
I have one more question for you, since you’re the only person who can really help me with the wide-angle issue.
The problem is that on the Xiaomi Note 10, it doesn’t provide physical camera IDs, so how can I open the wide-angle camera in that case?
Also, what about Samsung devices that support wide-angle? What changes should I make in the code for Samsung? I need to handle Samsung devices as well.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/9ba40eeb-ec80-4f73-8cbd-55f4af79a882n%40android.com.