Liking cljdoc? Tell your friends :D

web.media.ImageCapture

The ImageCapture interface of the MediaStream Image Capture API methods to enable the capture of images or photos from a camera other photographic device provides an interface for capturing from a photographic device referenced through a valid web.video.MediaStreamTrack.

The ImageCapture interface of the MediaStream Image Capture API
methods to enable the capture of images or photos from a camera
other photographic device provides an interface for capturing
from a photographic device referenced through a valid `web.video.MediaStreamTrack`.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The ImageCapture() constructor creates a new web.media.ImageCapture object which creates a new web.media.ImageCapture object.

videoTrack A web.video.MediaStreamTrack from which the still images will be taken. This can be any source, such as an incoming stream of a video conference, a playing movie, or the stream from a webcam.

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/ImageCapture

Constructor.

The ImageCapture() constructor creates a new `web.media.ImageCapture` object which creates a new `web.media.ImageCapture` object.

videoTrack
A `web.video.MediaStreamTrack` from which the still images will be taken. This can be any source, such as an incoming stream of a video conference, a playing movie, or the stream from a webcam.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/ImageCapture`
sourceraw docstring

get-photo-capabilitiescljs

(get-photo-capabilities this)

Method.

[Experimental]

The getPhotoCapabilities() method of the web.media.ImageCapture returns a js.Promise that resolves with a web.media.PhotoCapabilities containing the ranges of available configuration options.

var promise = ImageCapture.getPhotoCapabilities()

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoCapabilities

Method.

[Experimental]

The getPhotoCapabilities() method of the `web.media.ImageCapture`
returns a `js.Promise` that resolves with a `web.media.PhotoCapabilities`
containing the ranges of available configuration options.

`var promise = ImageCapture.getPhotoCapabilities()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoCapabilities`
sourceraw docstring

get-photo-settingscljs

(get-photo-settings this)

Method.

[Experimental]

The getPhotoSettings() property of the web.media.ImageCapture returns a js.Promise that resolves with a PhotoSettings object the current photo configuration settings.

var promise = ImageCapture.getPhotoSettings()

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoSettings

Method.

[Experimental]

The getPhotoSettings() property of the `web.media.ImageCapture`
returns a `js.Promise` that resolves with a `PhotoSettings` object
the current photo configuration settings.

`var promise = ImageCapture.getPhotoSettings()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoSettings`
sourceraw docstring

grab-framecljs

(grab-frame this & args)

Method.

[Experimental]

The grabFrame() property of the web.media.ImageCapture interface a snapshot of the live video in a web.video.MediaStreamTrack, an ImageBitmap, if successful.

ImageCapture.grabFrame().then(function(imageBitmap) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/grabFrame

Method.

[Experimental]

The grabFrame() property of the `web.media.ImageCapture` interface
a snapshot of the live video in a `web.video.MediaStreamTrack`,
an ImageBitmap, if successful.

`ImageCapture.grabFrame().then(function(imageBitmap) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/grabFrame`
sourceraw docstring

take-photocljs

(take-photo this photo-settings)

Method.

[Experimental]

The takePhoto() method of the web.media.ImageCapture interface a single exposure using the video capture device sourcing a web.video.MediaStreamTrack returns a js.Promise that resolves with a web.files.Blob the data.

var promise = ImageCapture.takePhoto(photoSettings)

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/takePhoto

Method.

[Experimental]

The takePhoto() method of the `web.media.ImageCapture` interface
a single exposure using the video capture device sourcing a `web.video.MediaStreamTrack`
returns a `js.Promise` that resolves with a `web.files.Blob`
the data.

`var promise = ImageCapture.takePhoto(photoSettings)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/takePhoto`
sourceraw docstring

trackcljs

(track this)

Property.

[Read Only] [Experimental]

The track read-only property of the web.media.ImageCapture returns a reference to the web.video.MediaStreamTrack passed the ImageCapture() constructor.

var mediaStreamTrack = ImageCapture.track

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/track

Property.

[Read Only]
[Experimental]

The track read-only property of the `web.media.ImageCapture`
returns a reference to the `web.video.MediaStreamTrack` passed
the `ImageCapture()` constructor.

`var mediaStreamTrack = ImageCapture.track`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/track`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close