CDPotion.Domain.Cast (cdpotion v0.1.4)

Summary

Types

description not provided :(

Functions

Stops observing for sinks and issues.

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.

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.

Starts mirroring the desktop to the sink.

Starts mirroring the tab to the sink.

Stops the active Cast session on the sink.

Types

@type sink() :: %{id: String.t(), name: String.t(), session: String.t() | nil}

description not provided :(

Functions

@spec disable() :: {String.t(), map()}

Stops observing for sinks and issues.

Link to this function

enable(presentation_url \\ nil)

@spec enable(String.t()) :: {String.t(), map()}

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:

  • (Optional) presentation_url: description not provided :(
Link to this function

set_sink_to_use(sink_name)

@spec set_sink_to_use(String.t()) :: {String.t(), map()}

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:

  • (Required) sink_name: description not provided :(
Link to this function

start_desktop_mirroring(sink_name)

@spec start_desktop_mirroring(String.t()) :: {String.t(), map()}

Starts mirroring the desktop to the sink.

Parameters:

  • (Required) sink_name: description not provided :(
Link to this function

start_tab_mirroring(sink_name)

@spec start_tab_mirroring(String.t()) :: {String.t(), map()}

Starts mirroring the tab to the sink.

Parameters:

  • (Required) sink_name: description not provided :(
Link to this function

stop_casting(sink_name)

@spec stop_casting(String.t()) :: {String.t(), map()}

Stops the active Cast session on the sink.

Parameters:

  • (Required) sink_name: description not provided :(