Available on crate features
experimental and Cast only.Expand description
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
Structsยง
- Disable
Command - Stops observing for sinks and issues.
- Disable
Return - Stops observing for sinks and issues.
- Enable
Command - 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.
- Enable
Return - 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.
- Issue
Updated Event - This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.
- SetSink
ToUse Command - 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.
- SetSink
ToUse Return - 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.
- Sink
- Sinks
Updated Event - This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.
- Start
TabMirroring Command - Starts mirroring the tab to the sink.
- Start
TabMirroring Return - Starts mirroring the tab to the sink.
- Stop
Casting Command - Stops the active Cast session on the sink.
- Stop
Casting Return - Stops the active Cast session on the sink.