Package io.webfolder.cdp.command
Interface CastAsync
public interface CastAsync
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
-
Method Summary
Modifier and TypeMethodDescriptiondisable()
Stops observing for sinks and issues.enable()
Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.setSinkToUse
(String sinkName) 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.startDesktopMirroring
(String sinkName) Starts mirroring the desktop to the sink.startTabMirroring
(String sinkName) Starts mirroring the tab to the sink.stopCasting
(String sinkName) Stops the active Cast session on the sink.
-
Method Details
-
disable
CompletableFuture<Void> disable()Stops observing for sinks and issues. -
enable
CompletableFuture<Void> enable()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
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. -
setSinkToUse
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. -
startDesktopMirroring
Starts mirroring the desktop to the sink. -
startTabMirroring
Starts mirroring the tab to the sink. -
stopCasting
Stops the active Cast session on the sink.
-