Liking cljdoc? Tell your friends :D

chromex.app.desktop-capture

clj

Desktop Capture API that can be used to capture content of screen, individual windows or tabs.

Desktop Capture API that can be used to capture content of screen, individual windows or tabs.

* available since Chrome 34
* https://developer.chrome.com/apps/desktopCapture
raw docstring

api-tableclj

source

cancel-choose-desktop-mediaclj/smacro

(cancel-choose-desktop-media desktop-media-request-id)

Hides desktop media picker dialog shown by chooseDesktopMedia().

|desktop-media-request-id| - Id returned by chooseDesktopMedia()

https://developer.chrome.com/apps/desktopCapture#method-cancelChooseDesktopMedia.

Hides desktop media picker dialog shown by chooseDesktopMedia().

  |desktop-media-request-id| - Id returned by chooseDesktopMedia()

https://developer.chrome.com/apps/desktopCapture#method-cancelChooseDesktopMedia.
sourceraw docstring

cancel-choose-desktop-media*cljs

(cancel-choose-desktop-media* config desktop-media-request-id)
source

choose-desktop-mediaclj/smacro

(choose-desktop-media sources)
(choose-desktop-media sources target-tab)

Shows desktop media picker UI with the specified set of sources.

|sources| - Set of sources that should be shown to the user. The sources order in the set decides the tab order in the picker. |target-tab| - Optional tab for which the stream is created. If not specified then the resulting stream can be used only by the calling extension. The stream can only be used by frames in the given tab whose security origin matches tab.url. The tab's origin must be a secure origin, e.g. HTTPS.

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 [stream-id options] where:

|stream-id| - An opaque string that can be passed to getUserMedia() API to generate media stream that corresponds to the source selected by the user. If user didn't select any source (i.e. canceled the prompt) then the callback is called with an empty streamId. The created streamId can be used only once and expires after a few seconds when it is not used. |options| - Contains properties that describe the stream.

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.

https://developer.chrome.com/apps/desktopCapture#method-chooseDesktopMedia.

Shows desktop media picker UI with the specified set of sources.

  |sources| - Set of sources that should be shown to the user. The sources order in the set decides the tab order in the
              picker.
  |target-tab| - Optional tab for which the stream is created. If not specified then the resulting stream can be used
                 only by the calling extension. The stream can only be used by frames in the given tab whose security
                 origin matches tab.url. The tab's origin must be a secure origin, e.g. HTTPS.

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 [stream-id options] where:

  |stream-id| - An opaque string that can be passed to getUserMedia() API to generate media stream that corresponds to the
                source selected by the user. If user didn't select any source (i.e. canceled the prompt) then the callback
                is called with an empty streamId. The created streamId can be used only once and expires after a few
                seconds when it is not used.
  |options| - Contains properties that describe the stream.

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.

https://developer.chrome.com/apps/desktopCapture#method-chooseDesktopMedia.
sourceraw docstring

choose-desktop-media*cljs

(choose-desktop-media* config sources target-tab)
source

gen-callclj

source

gen-wrapclj/smacro

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

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.desktop-capture namespace.

Taps all valid non-deprecated events in chromex.app.desktop-capture namespace.
sourceraw docstring

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

× close