Cast.enableStarts 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.
| Name | Type | Description |
|---|---|---|
presentationUrl (optional) | string |
{
"id": 1,
"method": "Cast.enable"
}
{
"id": 1,
"result": {}
}
const result = await send('Cast.enable');
console.log(result);