Cast#
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
This CDP domain is experimental.
Types#
Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.
Commands#
Each command is a generator function. The return
type Generator[x, y, z] indicates that the generator
yields arguments of type x, it must be resumed with
an argument of type y, and it returns type z. In
this library, types x and y are the same for all
commands, and z is the return type you should pay attention
to. For more information, see
Getting Started: Commands.
- enable(presentation_url=None)[source]#
Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with
presentationUrlas well. When sinks are found, asinksUpdatedevent is fired. Also starts observing for issue messages. When an issue is added or removed, anissueUpdatedevent is fired.
- set_sink_to_use(sink_name)[source]#
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.
Events#
Generally, you do not need to instantiate CDP events yourself. Instead, the API creates events for you and then you use the event’s attributes.