← Back to Cast domain

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.

Domain: Cast experimental

Parameters

NameTypeDescription
presentationUrl (optional)string

Example Request

{
  "id": 1,
  "method": "Cast.enable"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Cast.enable');
console.log(result);