Webcam Private API.
Webcam Private API. * available since Chrome 40
(close-webcam webcam-id)Close a serial port connection to a webcam.
|webcam-id| - ?
Close a serial port connection to a webcam. |webcam-id| - ?
(get webcam-id)Retrieve webcam parameters. Will respond with a config holding the requested values that are available, or default values for those that aren't. If none of the requests succeed, will respond with an error.
|webcam-id| - ?
This function returns a core.async channel of type promise-chan which eventually receives a result value.
Signature of the result value put on the channel is [configuration] where:
|configuration| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Retrieve webcam parameters. Will respond with a config holding the requested values that are available, or default values for those that aren't. If none of the requests succeed, will respond with an error. |webcam-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [configuration] where: |configuration| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(open-serial-webcam path protocol)Open a serial port that controls a webcam.
|path| - ? |protocol| - ?
This function returns a core.async channel of type promise-chan which eventually receives a result value.
Signature of the result value put on the channel is [webcam-id] where:
|webcam-id| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Open a serial port that controls a webcam. |path| - ? |protocol| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [webcam-id] where: |webcam-id| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(reset webcam-id config)Reset a webcam. Note: the value of the parameter have no effect, it's the presence of the parameter that matters. E.g.: reset(webcamId, {pan: 0, tilt: 1}); will reset pan & tilt, but not zoom. A callback is included here which is invoked when the function responds. No configuration is returned through it.
|webcam-id| - ? |config| - ?
This function returns a core.async channel of type promise-chan which eventually receives a result value.
Signature of the result value put on the channel is [configuration] where:
|configuration| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Reset a webcam. Note: the value of the parameter have no effect, it's the presence of the parameter that matters. E.g.:
reset(webcamId, {pan: 0, tilt: 1}); will reset pan & tilt, but not zoom. A callback is included here which is invoked when
the function responds. No configuration is returned through it.
|webcam-id| - ?
|config| - ?
This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [configuration] where:
|configuration| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.(set webcam-id config)A callback is included here which is invoked when the function responds. No configuration is returned through it.
|webcam-id| - ? |config| - ?
This function returns a core.async channel of type promise-chan which eventually receives a result value.
Signature of the result value put on the channel is [configuration] where:
|configuration| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
A callback is included here which is invoked when the function responds. No configuration is returned through it. |webcam-id| - ? |config| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [configuration] where: |configuration| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)Taps all valid non-deprecated events in chromex.app.webcam-private namespace.
Taps all valid non-deprecated events in chromex.app.webcam-private namespace.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |