You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdisposable=awaitpage.screencast.start(({ data }) => {
16
+
awaitpage.screencast.start(({ data })=> {
17
17
console.log(`frame size: ${data.length}`);
18
18
}, { preferredSize: { width:800, height:600 } });
19
19
// ... perform actions ...
20
-
awaitdisposable.dispose();
20
+
awaitpage.screencast.stop();
21
21
```
22
22
23
23
### param: Screencast.start.onFrame
@@ -39,3 +39,8 @@ Specifies the preferred maximum dimensions of screencast frames. The actual fram
39
39
If a screencast is already active (e.g. started by tracing or video recording), the existing configuration takes precedence and the frame size may exceed these bounds or this option may be ignored.
40
40
41
41
Defaults to 800×800.
42
+
43
+
## async method: Screencast.stop
44
+
* since: v1.59
45
+
46
+
Stops the screencast started with [`method: Screencast.start`].
0 commit comments