Private API for receiving real-time media perception information.
Private API for receiving real-time media perception information. * available since Chrome 60
(get-diagnostics)
Get a diagnostics buffer out of the video analytics process.
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 [diagnostics] where:
|diagnostics| - ?
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.
Get a diagnostics buffer out of the video analytics process. 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 [diagnostics] where: |diagnostics| - ? 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.
(get-state)
Gets the status of the media perception process.
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 [state] where:
|state| - ?
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.
Gets the status of the media perception process. 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 [state] where: |state| - ? 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-analytics-component component)
Attempts to download and load the media analytics component. This function should be called every time a client starts using this API. If the component is already loaded, the callback will simply return that information. The process must be STOPPED for this function to succeed. Note: If a different component type is desired, this function can be called with the new desired type and the new component will be downloaded and installed.
|component| - The desired component to install and load.
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 [component-state] where:
|component-state| - ?
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.
Attempts to download and load the media analytics component. This function should be called every time a client starts using this API. If the component is already loaded, the callback will simply return that information. The process must be STOPPED for this function to succeed. Note: If a different component type is desired, this function can be called with the new desired type and the new component will be downloaded and installed. |component| - The desired component to install and load. 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 [component-state] where: |component-state| - ? 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-component-process-state process-state)
Manages the lifetime of the component process. This function should only be used if the component is installed. It will fail if the component is not installed.
|process-state| - The desired state for the component process.
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 [process-state] where:
|process-state| - ?
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.
Manages the lifetime of the component process. This function should only be used if the component is installed. It will fail if the component is not installed. |process-state| - The desired state for the component process. 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 [process-state] where: |process-state| - ? 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-state state)
Sets the desired state of the system.
|state| - A dictionary with the desired new state. The only settable states are RUNNING, SUSPENDED, and RESTARTING.
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 [state] where:
|state| - ?
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.
Sets the desired state of the system. |state| - A dictionary with the desired new state. The only settable states are RUNNING, SUSPENDED, and RESTARTING. 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 [state] where: |state| - ? 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.media-perception-private namespace.
Taps all valid non-deprecated events in chromex.app.media-perception-private namespace.
(tap-on-media-perception-events channel & args)
Fired when media perception information is received from the media analytics process.
Events will be put on the |channel| with signature [::on-media-perception [media-perception]] where:
|media-perception| - The dictionary which contains a dump of everything the analytics process has detected or determined from the incoming media streams.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when media perception information is received from the media analytics process. Events will be put on the |channel| with signature [::on-media-perception [media-perception]] where: |media-perception| - The dictionary which contains a dump of everything the analytics process has detected or determined from the incoming media streams. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close