clj-chrome-devtools.commands.cast

A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.

disable

(disable)(disable {:as params, :keys []})(disable connection {:as params, :keys []})

Stops observing for sinks and issues.

enable

(enable)(enable {:as params, :keys [presentation-url]})(enable connection {:as params, :keys [presentation-url]})

Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.

Parameters map keys:

Key Description
:presentation-url null (optional)

set-sink-to-use

(set-sink-to-use)(set-sink-to-use {:as params, :keys [sink-name]})(set-sink-to-use connection {:as params, :keys [sink-name]})

Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.

Parameters map keys:

Key Description
:sink-name null

start-desktop-mirroring

(start-desktop-mirroring)(start-desktop-mirroring {:as params, :keys [sink-name]})(start-desktop-mirroring connection {:as params, :keys [sink-name]})

Starts mirroring the desktop to the sink.

Parameters map keys:

Key Description
:sink-name null

start-tab-mirroring

(start-tab-mirroring)(start-tab-mirroring {:as params, :keys [sink-name]})(start-tab-mirroring connection {:as params, :keys [sink-name]})

Starts mirroring the tab to the sink.

Parameters map keys:

Key Description
:sink-name null

stop-casting

(stop-casting)(stop-casting {:as params, :keys [sink-name]})(stop-casting connection {:as params, :keys [sink-name]})

Stops the active Cast session on the sink.

Parameters map keys:

Key Description
:sink-name null