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.
(enumerate-devices this)
Method.
The media.MediaDevices
method enumerateDevices() requests a
of the available media input and output devices, such as microphones,
headsets, and so forth.
var enumeratorPromise = navigator.mediaDevices.enumerateDevices();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices
Method. The `media.MediaDevices` method enumerateDevices() requests a of the available media input and output devices, such as microphones, headsets, and so forth. `var enumeratorPromise = navigator.mediaDevices.enumerateDevices();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices`
(get-display-media this constraints)
Method.
The media.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 media.MediaStream
.
var promise = navigator.mediaDevices.getDisplayMedia(constraints);
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
Method. The `media.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 `media.MediaStream`. `var promise = navigator.mediaDevices.getDisplayMedia(constraints);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia`
(get-supported-constraints this)
Method.
The getSupportedConstraints() method of the media.MediaDevices
returns an object based on the media.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 `media.MediaDevices` returns an object based on the `media.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`
(get-user-media this constraints)
Method.
The media.MediaDevices
.getUserMedia() method prompts the user
permission to use a media input which produces a media.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 `media.MediaDevices`.getUserMedia() method prompts the user permission to use a media input which produces a `media.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`
(ondevicechange this)
Property.
The MediaDevices.ondevicechange property is an web.EventHandler
specifies a function to be called when the devicechange event
on a media.MediaDevices
instance. This happens whenever the
of media devices available to the user agent and, by extension,
the web site or app has changed. You can at any time use web.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 `web.EventHandler` specifies a function to be called when the devicechange event on a `media.MediaDevices` instance. This happens whenever the of media devices available to the user agent and, by extension, the web site or app has changed. You can at any time use `web.enumerateDevices()` get the updated list of available devices. `MediaDevices.ondevicechange = eventHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange`
(set-ondevicechange! this val)
Property.
The MediaDevices.ondevicechange property is an web.EventHandler
specifies a function to be called when the devicechange event
on a media.MediaDevices
instance. This happens whenever the
of media devices available to the user agent and, by extension,
the web site or app has changed. You can at any time use web.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 `web.EventHandler` specifies a function to be called when the devicechange event on a `media.MediaDevices` instance. This happens whenever the of media devices available to the user agent and, by extension, the web site or app has changed. You can at any time use `web.enumerateDevices()` get the updated list of available devices. `MediaDevices.ondevicechange = eventHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close