Answer the question
In order to leave comments, you need to log in
How to enable flash in Camera2 API without creating a new session?
Good day to all. I'm working on an application based on the Camera 2 API and I want to add the ability to enable/disable the flash in this application.
I know it can be done like this:
mPreviewBuilder.set(CaptureRequest.FLASH_MODE, CaptureRequest.FLASH_MODE_SINGLE);
mPreviewSession.setRepeatingRequest(mPreviewBuilder.build(), null, null);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question