camerakit-android icon indicating copy to clipboard operation
camerakit-android copied to clipboard

Toggle facing breaks continuous focus

Open lukaspili opened this issue 9 years ago • 5 comments

Steps to reproduce:

  1. Start cameraview with focus set on continuous and facing set on back;
  2. Toggle facing using cameraView.toggleFacing();
  3. Camera does not focus anymore, neither in back or front facing.

Calling cameraView.setFocus(CameraKit.Constants.FOCUS_CONTINUOUS) after toggling does not help.

lukaspili avatar Mar 24 '17 20:03 lukaspili

Hi! i have to put CameraKit.Constants.FOCUS_CONTINUOUS as a default Value to make it work.

jabalsick avatar Mar 27 '17 20:03 jabalsick

What do you mean? The continuous focus is working until I toggle the camera between back and front.

lukaspili avatar Mar 27 '17 21:03 lukaspili

Has the cause of this been found yet? I am also able to reproduce this issue on 0.12.1

jlmcdonnell avatar Nov 30 '17 15:11 jlmcdonnell

I found a temporary workaround to get focus working again after switching camera until the underlying issue is resolved.

After changing to the front or back camera:

cameraView.stop()
cameraView.start()
cameraView.setFocus(CameraKit.Constants.FOCUS_CONTINUOUS)

jlmcdonnell avatar Nov 30 '17 15:11 jlmcdonnell

This issue has been resolved in v1.0.0. Closing this issue. If there still are focus issues in 1.0.0 I will make new ticket to keep track!

emersoncloud avatar Jul 30 '18 20:07 emersoncloud