Liking cljdoc? Tell your friends :D

web.video.MediaDevices

The MediaDevices interface provides access to connected media devices like cameras and microphones, as well as screen sharing. essence, it lets you obtain access to any hardware source of data.

The MediaDevices interface provides access to connected media
devices like cameras and microphones, as well as screen sharing.
essence, it lets you obtain access to any hardware source of
data.
raw docstring

enumerate-devicescljs

(enumerate-devices this)

Method.

The web.video.MediaDevices method enumerateDevices() requests list of the available media input and output devices, such as cameras, headsets, and so forth.

var enumeratorPromise = navigator.mediaDevices.enumerateDevices();

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

Method.

The `web.video.MediaDevices` method enumerateDevices() requests
list of the available media input and output devices, such as
cameras, headsets, and so forth.

`var enumeratorPromise = navigator.mediaDevices.enumerateDevices();`

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

get-display-mediacljs

(get-display-media this constraints)

Method.

The web.video.MediaDevices interface's getDisplayMedia() method the user to select and grant permission to capture the contents a display or portion thereof (such as a window) as a web.streams.MediaStream.

var promise = navigator.mediaDevices.getDisplayMedia(constraints);

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

Method.

The `web.video.MediaDevices` interface's getDisplayMedia() method
the user to select and grant permission to capture the contents
a display or portion thereof (such as a window) as a `web.streams.MediaStream`.

`var promise = navigator.mediaDevices.getDisplayMedia(constraints);`

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

get-supported-constraintscljs

(get-supported-constraints this)

Method.

The getSupportedConstraints() method of the web.video.MediaDevices returns an object based on the web.streams.MediaTrackSupportedConstraints whose member fields each specify one of the constrainable properties user agent understands.

var supportedConstraints = navigator.mediaDevices.getSupportedConstraints();

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

Method.

The getSupportedConstraints() method of the `web.video.MediaDevices`
returns an object based on the `web.streams.MediaTrackSupportedConstraints`
whose member fields each specify one of the constrainable properties
user agent understands.

`var supportedConstraints = navigator.mediaDevices.getSupportedConstraints();`

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

get-user-mediacljs

(get-user-media this constraints)

Method.

The web.video.MediaDevices.getUserMedia() method prompts the for permission to use a media input which produces a web.streams.MediaStream tracks containing the requested types of media.

var promise = navigator.mediaDevices.getUserMedia(constraints);

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

Method.

The `web.video.MediaDevices`.getUserMedia() method prompts the
for permission to use a media input which produces a `web.streams.MediaStream`
tracks containing the requested types of media.

`var promise = navigator.mediaDevices.getUserMedia(constraints);`

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

ondevicechangecljs

(ondevicechange this)

Property.

The MediaDevices.ondevicechange property is an EventHandler specifies a function to be called when the devicechange event on a web.video.MediaDevices instance. This happens whenever set of media devices available to the user agent and, by extension, the web site or app has changed. You can at any time use enumerateDevices() get the updated list of available devices.

MediaDevices.ondevicechange = eventHandler;

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

Property.

The MediaDevices.ondevicechange property is an `EventHandler`
specifies a function to be called when the devicechange event
on a `web.video.MediaDevices` instance. This happens whenever
set of media devices available to the user agent and, by extension,
the web site or app has changed. You can at any time use `enumerateDevices()`
get the updated list of available devices.

`MediaDevices.ondevicechange = eventHandler;`

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

set-ondevicechange!cljs

(set-ondevicechange! this val)

Property.

The MediaDevices.ondevicechange property is an EventHandler specifies a function to be called when the devicechange event on a web.video.MediaDevices instance. This happens whenever set of media devices available to the user agent and, by extension, the web site or app has changed. You can at any time use enumerateDevices() get the updated list of available devices.

MediaDevices.ondevicechange = eventHandler;

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

Property.

The MediaDevices.ondevicechange property is an `EventHandler`
specifies a function to be called when the devicechange event
on a `web.video.MediaDevices` instance. This happens whenever
set of media devices available to the user agent and, by extension,
the web site or app has changed. You can at any time use `enumerateDevices()`
get the updated list of available devices.

`MediaDevices.ondevicechange = eventHandler;`

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

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

× close