Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flash not working after recording start #15

Open
pankrawat844 opened this issue Aug 13, 2019 · 3 comments
Open

flash not working after recording start #15

pankrawat844 opened this issue Aug 13, 2019 · 3 comments

Comments

@pankrawat844
Copy link

when i start flash then click on recording then flash is closed, why this happend. Anybody help me

@mashtyyy
Copy link

mashtyyy commented Oct 12, 2020

hi
I solved by this
just add below code to the end of onStartRecording() function

` int flash = photographer.getFlash();
if (flash == Values.FLASH_TORCH) {
photographer.setFlash(Values.FLASH_OFF);

                new Handler().postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        photographer.setFlash(Values.FLASH_TORCH);
                    }
                },100);
            }`
@rishu404
Copy link

Hi @mashtyyy

Are you getting a blink after starting the recording by the solution you gave above?

@anilchahalaig
Copy link

I am also facing the flash issue, any resolution folks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants