cdp_driver/methods/cast.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! A domain for interacting with Cast, Presentation API, and Remote Playback
5//! API functionalities.
6//!
7//! Method names for the `Cast` domain, for use with
8//! [`CdpClient::call`](crate::CdpClient::call).
9//!
10//! This domain is experimental and may change without notice.
11
12/// Starts observing for sinks that can be used for tab mirroring, and if set,
13/// sinks compatible with |presentationUrl| as well. When sinks are found, a
14/// |sinksUpdated| event is fired. Also starts observing for issue messages.
15/// When an issue is added or removed, an |issueUpdated| event is fired.
16///
17/// Parameters:
18/// - `presentationUrl`: string (optional)
19pub const ENABLE: &str = "Cast.enable";
20
21/// Stops observing for sinks and issues.
22pub const DISABLE: &str = "Cast.disable";
23
24/// Sets a sink to be used when the web page requests the browser to choose a
25/// sink via Presentation API, Remote Playback API, or Cast SDK.
26///
27/// Parameters:
28/// - `sinkName`: string
29pub const SET_SINK_TO_USE: &str = "Cast.setSinkToUse";
30
31/// Starts mirroring the desktop to the sink.
32///
33/// Parameters:
34/// - `sinkName`: string
35pub const START_DESKTOP_MIRRORING: &str = "Cast.startDesktopMirroring";
36
37/// Starts mirroring the tab to the sink.
38///
39/// Parameters:
40/// - `sinkName`: string
41pub const START_TAB_MIRRORING: &str = "Cast.startTabMirroring";
42
43/// Stops the active Cast session on the sink.
44///
45/// Parameters:
46/// - `sinkName`: string
47pub const STOP_CASTING: &str = "Cast.stopCasting";