The chrome.webrtcAudioPrivate API allows enumeration of audio output (sink) devices.
Note that device IDs as used in this API are opaque (i.e. they are not the hardware identifier of the device) and while they are unique and persistent across sessions, they are valid only to the extension calling this API (i.e. they cannot be shared between extensions).
See http://goo.gl/8rOmgk for further documentation of this API.
The chrome.webrtcAudioPrivate API allows enumeration of audio output (sink) devices. Note that device IDs as used in this API are opaque (i.e. they are not the hardware identifier of the device) and while they are unique and persistent across sessions, they are valid only to the extension calling this API (i.e. they cannot be shared between extensions). See http://goo.gl/8rOmgk for further documentation of this API. * available since Chrome 32
(get-associated-sink security-origin source-id-in-origin)
Given a security origin and an input device ID valid for that security origin, retrieve an audio sink ID valid for the extension, or the empty string if there is no associated audio sink.The associated sink ID can be used as a sink ID for setActiveSink. It is valid irrespective of which process you are setting the active sink for.
|security-origin| - ? |source-id-in-origin| - ?
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 [sink-id] where:
|sink-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.
Given a security origin and an input device ID valid for that security origin, retrieve an audio sink ID valid for the extension, or the empty string if there is no associated audio sink.The associated sink ID can be used as a sink ID for setActiveSink. It is valid irrespective of which process you are setting the active sink for. |security-origin| - ? |source-id-in-origin| - ? 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 [sink-id] where: |sink-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.
(get-sinks)
Retrieves a list of available audio sink devices.
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 [sink-info] where:
|sink-info| - ?
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.
Retrieves a list of available audio sink devices. 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 [sink-info] where: |sink-info| - ? 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-audio-experiments request security-origin audio-experiments)
Sets the active audio experiments.
|request| - Information about the requesting process. |security-origin| - The origin to restrict the settings to. |audio-experiments| - The experiments to enable or disable.
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 [].
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 active audio experiments. |request| - Information about the requesting process. |security-origin| - The origin to restrict the settings to. |audio-experiments| - The experiments to enable or disable. 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 []. 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-audio-experiments* config request security-origin audio-experiments)
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.webrtc-audio-private namespace.
Taps all valid non-deprecated events in chromex.ext.webrtc-audio-private namespace.
(tap-on-sinks-changed-events channel & args)
Fired when audio sink devices are added or removed.
Events will be put on the |channel| with signature [::on-sinks-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when audio sink devices are added or removed. Events will be put on the |channel| with signature [::on-sinks-changed []]. 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