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

Real-Time Access to Camera Properties in Media Capture API #309

Open
AkiSakurai opened this issue Oct 22, 2024 · 0 comments
Open

Real-Time Access to Camera Properties in Media Capture API #309

AkiSakurai opened this issue Oct 22, 2024 · 0 comments

Comments

@AkiSakurai
Copy link

While the current W3C Media Capture and Streams API and Media Capture Image API allow control over certain camera properties such as exposure, ISO, and focus distance, they lack the ability to retrieve real-time values for these parameters when set to auto mode. Developers need access to these values for applications where real-time feedback is essential, such as augmented reality, scientific imaging, and custom photography apps.

Most platforms already provide support for accessing real-time camera properties.

Platform Support

iOS

iOS native applications (via AVCaptureDevice) already allow real-time access to camera properties like:
AVCaptureDevice.exposureDuration for exposure.
AVCaptureDevice.iso for iso.
lensPosition for focus distance.

Android

Android's Camera2 API provides real-time feedback for:
SENSOR_EXPOSURE_TIME for exposure.
SENSOR_SENSITIVITY for ISO.
LENS_FOCUS_DISTANCE for focus distance.

Windows

Windows provides access to these properties through the Windows.Media.Capture APIs:
ExposureCompensationControl for exposure.
IsoSpeedControl for ISO.
FocusControl for focus distance.

Given these capabilities, should the W3C API be extended to include access to these real-time properties?

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

No branches or pull requests

1 participant