mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

CameraController doesn't switch cameras when we call switchCamera

Open pneves001 opened this issue 1 year ago • 2 comments

I'm using an Ulefone armor X 10. With Android 11. The camera controller seems flakey. It doesn't switch cameras when we call switchCamera and sometimes the torch doesn't work.

I have to close out of the screen and reopen it to get the camera to start working again. And I am disposing of the CameraController in the dispose function to do it and then opening it up again.

Ive tried stopping the scan before calling the switch camera function and restarting it to no avail.

Whatever camera is set when we setup the mobile_scanner control is what gets used and it works otherwise. But just doesn't want to switch cameras.

pneves001 avatar Oct 16 '23 08:10 pneves001

I get the same problem and i don't know how to solve it

ZiadElgaraihe avatar Nov 04 '23 21:11 ZiadElgaraihe

Facing same issue. Camera controller dispose method called by itself when pop from scanner page. That's why couldn't able to switch camera and toggle flash light.

Dr-Usman avatar Nov 27 '23 05:11 Dr-Usman