This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

ImageCapture

Summary

Specifies the takePhoto() and getFrame() methods, and corresponding camera settings for use with MediaStreams.

Properties

onerror
Register/unregister for Image Capture error events of type ImageCaptureErrorEvent.
onframegrab
Register/unregister for frame capture events of type FrameGrabEvent.
onphoto
Register/unregister for photo events of type BlobEvent.
onphotosettingschange
Register/unregister for photo settings change events of type SettingsChangeEvent.
photoSettingsOptions
Describes current photo settings.
videoStreamTrack
The MediaStream passed into the constructor.

Methods

getFrame
Gathers data from the VideoStreamTrack into a ImageData object.
setOptions
Applies the settings specified by the PhotoSettings object passed by parameter.
takePhoto
Gathers data from the VideoStreamTrack into a Blob containing a single still image.

Events

No events.

Related specifications

Mediastream Image Capture
W3C Editor’s draft

See also

Related articles

Mobile

External resources