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
Copy file name to clipboardExpand all lines: README.md
+25-53Lines changed: 25 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -864,76 +864,48 @@ This setting will change the default maximum navigation time.
864
864
865
865
### screencast
866
866
867
-
The [`@browserless/screencast`](https://npm.im/@browserless/screencast) package allows you to automate browser action and produce a video recording as output.
867
+
The [`@browserless/screencast`](https://npm.im/@browserless/screencast) package allows you to capture each frame of a browser navigation using puppeteer.
These options will be passed to [Page.startScreencast](https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-startScreencast)
898
+
Check a [full example](/blob/master/packages/screencast/examples/server.js) generating a GIF as output.
911
899
912
-
##### gotoOpts
900
+
####page
913
901
914
902
type: `object`
915
903
916
-
These options will be passed to [goto[#options](/#options-6) to resolve, before starting the recording.
917
-
918
-
##### timeout
919
-
920
-
type: `number`</br>
921
-
default: `30000`
922
-
923
-
Sets the maximum navigation time.
924
-
925
-
##### tmpPath
926
-
927
-
type: `string`</br>
928
-
default: `os.tmpdir()`
904
+
The [Page](https://pptr.dev/api/puppeteer.page) object.
929
905
930
-
The temporary directory for writing the video. This is necessary for ffmpeg, and will be cleaned up before the function is finished.
931
-
932
-
##### withPage(page)
933
-
934
-
type: `function`
906
+
#### options
935
907
936
-
It sets the in-page browser action to perform during the video recording.
908
+
See [Page.startScreencast](https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-startScreencast)to know all the options and values supported.
0 commit comments