Package-level declarations
Types
The ImageCapture
interface of the MediaStream Image Capture API provides methods to enable the capture of images or photos from a camera or other photographic device. Available only in secure contexts.
Properties
Functions
The getPhotoCapabilities()
method of the ImageCapture interface returns a Promise that resolves with an object containing the ranges of available configuration options.
The getPhotoSettings()
method of the ImageCapture interface returns a Promise that resolves with an object containing the current photo configuration settings.
The grabFrame()
method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.
The takePhoto()
method of the ImageCapture interface takes a single exposure using the video capture device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.