The Image Capture API allows web applications to control the advanced settings of the device's camera, such as zoom, white balance, ISO or focus points and take photos based on these settings. It relies on the
streamVideoTrack object that might be obtained from the
stream - see Audio & Video Capture.
capturer = ImageCapture(streamVideoTrack)
- Creates an image capturer out of the Media Stream Video Track.
- Returns a
Promiseresolved with the photo taken with the current settings.
- Configures the
photoSettingsfor subsequent captures; if visible, the effects of the configuration can be seen in the Track used as input.