W3cubDocs

/Haxe JavaScript

ImageCapture

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:

Constructor

new(track:VideoStreamTrack)

Throws:

null

DOMError

Variables

onerror:Function

onphoto:Function

read onlyvideoStreamTrack:VideoStreamTrack

Methods

takePhoto():Void

Takes 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