Mattia Iavarone
Mattia Iavarone
@nsekhar90 do you still get this error if you choose a smaller picture/video/preview stram/frame processing size? I want to understand if the library can handle this better before deciding to...
Yeah please do. With camera.setPictureSize(). By default it's the biggest available. You can try camera.setPictureSize(SizeSelectors.smallest()) as an extreme example.
Nice to know. What if you **remove that line**, but instead you add `setPreviewStreamSize(SizeSelectors.smallest())` ? Does this fix the issue as well? You can adjust based on the device with...
I would call something like `setPreviewStreamSize(SizeSelectors.and(SizeSelectors.maxWidth(MAX_WIDTH), SizeSelectors.biggest())`. You should find the value of `MAX_WIDTH` by trying on your nexus (1000? 1200? 1400? 1900?). If you find an exact value please...
I'm not actively working on this but my suggestion is to limit the preview stream size with `setPreviewStreamSize()`. If you represent a company feel free to [sponsor](https://github.com/sponsors/natario1) me to let...
I don't know - you should find something that works for your app, as it likely depends on the picture/video size that you are choosing, whether you are using frame...
@tomer8007 it happens when the set of output sizes that we chose (preview stream size, frame processing size if you're using it, picture size when in Mode.PICTURE, video size when...
Thanks for the information. I don't fully understand what's going on though. Is there something the library could do, other than creating a new handler each time?
There's no API for this unfortunately.
There might be, it's not hard to do. If you plan to work on it, I can point you to the right place.