Relationship between "tapToFocus" and "isAutoFocusEnabled" #1521
replicant1
started this conversation in
General
Replies: 2 comments
-
Hello, Yes, this seem a bug. For now, you can call enableAutoFocus the first time before tapToFocus and this way you will solve the problem. Camera2 is affected too. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Pedro - I have a question about the "auto focus" feature in RootEncoder. When I call
RtmpCamera1.enableAutoFocus()
, if autofocus is supported by the camera, the Camera.ParameterFOCUS_MODE_AUTO
is set and a fieldautoFocusEnabled
is set totrue
. But when I calltapToFocus
, only theFOCUS_MODE_AUTO
parameter is set, and the fieldautoFocusEnabled
is not changed. It looks to me like the fieldautoFocusEnabled
ceases to be correlated with the camera's current focus mode once you calltapToFocus
? Is this a bug - or perhaps a gap in my understanding? It seems to me thatautoFocusEnabled
should be set totrue
intapToFocus()
- either in the main body of the method or in theautoFocusTakePictureCallback
referenced at the end of the method. Your thoughts?Beta Was this translation helpful? Give feedback.
All reactions