Cast Domain
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
Methods
- Cast.disable
- Cast.enable
- Cast.setSinkToUse
- Cast.startDesktopMirroring
- Cast.startTabMirroring
- Cast.stopCasting
Events
Types
Methods
Cast.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.
Parameters
presentationUrl
Optional
string
Cast.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.
Parameters
sinkName
string
Events
Cast.issueUpdated #
This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.
Parameters
issueMessage
string
Types
Cast.Sink #
Type: object
Properties
name
string
id
string
session
Optional
string
Text describing the current session. Present only if there is an active session on the sink.