natario1 / CameraView

📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size.
https://natario1.github.io/CameraView
Other
4.89k stars 922 forks source link

cameraView.takePictureSnapshot() returns blank bitmap if app:cameraDrawHardwareOverlays="true" #1243

Open bharatkhadodra1996 opened 1 year ago

bharatkhadodra1996 commented 1 year ago

Describe the bug

Please add a clear description of what the bug is, and fill the list below.

I set app:cameraDrawHardwareOverlays="true" and then I called a method cameraView.takePictureSnapshot(); In onPictureTaken() method I got a blank bitmap. The reason behind app:cameraDrawHardwareOverlays="true" is I have put MapView as an overlay and it is a hardware rendered view so it is showing in preview but not in video recording that's why I put app:cameraDrawHardwareOverlays="true".

But when I capture picture snapshot it is blank. So please provide me solution for this.