takePhotoAsync
external fun takePhotoAsync(photoSettings: PhotoSettings = definedExternally): Promise<Blob>(source)
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.