Liking cljdoc? Tell your friends :D

chromex.app.webcam-private

clj

Webcam Private API.

  • available since Chrome 40
Webcam Private API.

* available since Chrome 40
raw docstring

api-tableclj

source

close-webcamclj/smacro

(close-webcam webcam-id)

Close a serial port connection to a webcam.

|webcam-id| - ?

Close a serial port connection to a webcam.

|webcam-id| - ?
sourceraw docstring

close-webcam*cljs

(close-webcam* config webcam-id)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

getclj/smacro

(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.
sourceraw docstring

get*cljs

(get* config webcam-id)
source

open-serial-webcamclj/smacro

(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.
sourceraw docstring

open-serial-webcam*cljs

(open-serial-webcam* config path protocol)
source

resetclj/smacro

(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.
sourceraw docstring

reset*cljs

(reset* config webcam-id config)
source

restore-camera-presetclj/smacro

(restore-camera-preset webcam-id preset-number)

Restore the camera's position to that of the specified preset. A callback is included here which is invoked when the function responds.

|webcam-id| - ? |preset-number| - ?

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.

Restore the camera's position to that of the specified preset. A callback is included here which is invoked when the
function responds.

  |webcam-id| - ?
  |preset-number| - ?

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.
sourceraw docstring

restore-camera-preset*cljs

(restore-camera-preset* config webcam-id preset-number)
source

setclj/smacro

(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.
sourceraw docstring

set*cljs

(set* config webcam-id config)
source

set-camera-presetclj/smacro

(set-camera-preset webcam-id preset-number)

Set the current camera's position to be stored for the specified preset. A callback is included here which is invoked when the function responds.

|webcam-id| - ? |preset-number| - ?

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 the current camera's position to be stored for the specified preset. A callback is included here which is invoked when
the function responds.

  |webcam-id| - ?
  |preset-number| - ?

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.
sourceraw docstring

set-camera-preset*cljs

(set-camera-preset* config webcam-id preset-number)
source

set-homeclj/smacro

(set-home webcam-id)

Set home preset for a webcam. A callback is included here which is invoked when the function responds.

|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.

Set home preset for a webcam. A callback is included here which is invoked when the function responds.

  |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.
sourceraw docstring

set-home*cljs

(set-home* config webcam-id)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

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

× close