package js.html
extends EventTarget
Available on js
The ImageCapture interface of the MediaStream Image Capture API provides an interface for capturing images from a photographic device referenced through a valid MediaStreamTrack.
Documentation ImageCapture by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(track:VideoStreamTrack)Throws:
null |
DOMError |
|---|
onerror:Functiononphoto:Functionread onlyvideoStreamTrack:VideoStreamTracktakePhoto():VoidTakes a single exposure using the video capture device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ImageCapture.html