Screencast
Interface for capturing screencast frames from a page.
Methods
hideActions
Added in: v1.59Removes action decorations.
Usage
Screencast.hideActions();
Returns
hideOverlays
Added in: v1.59Hides overlays without removing them.
Usage
Screencast.hideOverlays();
Returns
showActions
Added in: v1.59Enables visual annotations on interacted elements. Returns a disposable that stops showing actions when disposed.
Usage
Screencast.showActions();
Screencast.showActions(options);
Arguments
optionsScreencast.ShowActionsOptions(optional)-
setDurationdouble (optional)#How long each annotation is displayed in milliseconds. Defaults to
500. -
Font size of the action title in pixels. Defaults to
24. -
setPositionenum AnnotatePosition { TOP_LEFT, TOP, TOP_RIGHT, BOTTOM_LEFT, BOTTOM, BOTTOM_RIGHT }(optional)#Position of the action title overlay. Defaults to
"top-right".
-
Returns
- [Disposable]#
showChapter
Added in: v1.59Shows a chapter overlay with a title and optional description, centered on the page with a blurred backdrop. Useful for narrating video recordings. The overlay is removed after the specified duration, or 2000ms.
Usage
Screencast.showChapter(title);
Screencast.showChapter(title, options);
Arguments
-
Title text displayed prominently in the overlay.
-
optionsScreencast.ShowChapterOptions(optional)
Returns
showOverlay
Added in: v1.59Adds an overlay with the given HTML content. The overlay is displayed on top of the page until removed. Returns a disposable that removes the overlay when disposed.
Usage
Screencast.showOverlay(html);
Screencast.showOverlay(html, options);
Arguments
-
HTML content for the overlay.
-
optionsScreencast.ShowOverlayOptions(optional)
Returns
- [Disposable]#
showOverlays
Added in: v1.59Shows overlays.
Usage
Screencast.showOverlays();
Returns
start
Added in: v1.59Starts the screencast. When setPath is provided, it saves video recording to the specified file. When setOnFrame is provided, delivers JPEG-encoded frames to the callback. Both can be used together.
Usage
Arguments
optionsScreencast.StartOptions(optional)
Returns
- [Disposable]#
stop
Added in: v1.59Stops the screencast and video recording if active. If a video was being recorded, saves it to the path specified in Screencast.start().
Usage
Screencast.stop();
Returns