Page.startScreencastStarts sending each frame using the `screencastFrame` event.
| Name | Type | Description |
|---|---|---|
format (optional) | string | Image compression format. |
quality (optional) | integer | Compression quality from range [0..100]. |
maxWidth (optional) | integer | Maximum screenshot width. |
maxHeight (optional) | integer | Maximum screenshot height. |
everyNthFrame (optional) | integer | Send every n-th frame. |
{
"id": 1,
"method": "Page.startScreencast"
}
{
"id": 1,
"result": {}
}
const result = await send('Page.startScreencast');
console.log(result);