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

[Feature Request] Control Camera autofocus #1348

Open
itlancer opened this issue Nov 10, 2021 · 0 comments
Open

[Feature Request] Control Camera autofocus #1348

itlancer opened this issue Nov 10, 2021 · 0 comments
Labels

Comments

@itlancer
Copy link

Feature Description

AIR should have a way to control Camera autofocus mode. Basically, at least enable or disable it.
Right now usually for desktop platforms Camera uses autofocus but for mobile platforms seems to not use it.
It cause inoperable image for different tasks for AR/VR applications and some image processing algorithms.
Moreover, sometimes focus mode need to be changed at run-time.

We would like to control Camera autofocus mode via AIR API.
Some references:
https://developer.android.com/reference/android/hardware/Camera.Parameters#setFocusMode(java.lang.String)
https://developer.android.com/reference/android/hardware/camera2/CaptureRequest#CONTROL_AF_MODE
https://developer.apple.com/documentation/avfoundation/avcapturefocusmode/avcapturefocusmodeautofocus?language=objc
https://stackoverflow.com/a/1718009/12375228

Known Workarounds

none
*Write own native extension to work with camera.

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

No branches or pull requests

1 participant