W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > April 2017

Re: [mediacapture-image] Provide API for getting / setting focus distance

From: David Sanders via GitHub <sysbot+gh@w3.org>
Date: Sat, 29 Apr 2017 20:19:44 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-298192160-1493497182-sysbot+gh@w3.org>
I'd like to bump this and voice my support for this as well. What is the current use case of setting `focusMode` to `manual` if you can't then provide a focus value? What focus value will be used, the last value before it was changed from auto to manual?

I have a strong use case for this API, and it could more or less be a drop-in replacement if a manual focus value is added to the API. Without a way to set a manual focus value it is not very useful as I have a use case where the user calibrates the camera settings once (sets zoom and focus value) and those settings are reloaded every time the page is used to provide a consistent experience as far as zoom and focus go. Currently this is accomplished in a hacky way by using WebSockets to talk to a server on the local machine which uses low-level APIs to set these values. I know that UVC and Windows APIs both have support for setting a manual focus value. The `android.hardware.camera2` API appears to have support for setting a focus distance, it's unclear if the older `android.hardware.Camera` API does.

@miguelao, anything I can do to help add this functionality to the spec?

GitHub Notification of comment by dsanders11
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/158#issuecomment-298192160 using your GitHub account
Received on Saturday, 29 April 2017 20:19:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:32 UTC