Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Trying to integrate flash #16

Description

@subhafalcon

I am trying to integrate flash (user selects to capture an image with the flash on or off). I have noticed if the flash is run, and after the image is captured with the flash (it has run a pre-capture as well) the preview becomes dim after the flash. I am wondering if the line
1052 in Camera2Source.java:

mCaptureSession.setRepeatingRequest(mPreviewRequest, mCaptureCallback, mBackgroundHandler);

Should be
mCaptureSession.setRepeatingRequest(mPreviewRequestBuilder.build(), mCaptureCallback, mBackgroundHandler);

As mPreviewRequest only gets set once on createCameraPreview.

Camera2Basic also has the mPreviewRequest passing in, so I wanted to verify why this has to the previewrequest set on start up and not the updated one. I using Pixel3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions