setPointerTrack
Draw a synthetic cursor on script-driven recordings: provide timed pointer events so OpenScreen animates clicks and adds zooms, replacing the missing recorded pointer.
Instructions
For a take driven by a script (Playwright, CDP, a browser extension) rather than the real mouse: the screen pointer never moved, so the video has no cursor and no zoom. Give the pointer's path here and OpenScreen draws it, gliding between your actions, and zooms on its clicks as for a real mouse. It replaces the pointer recorded with the take, then plans zooms on the new clicks as stopRecording does, clear of the zooms already there; autoZoomsAdded says how many. Only for a take recorded by this server. It is an edit like any other: on a project that is not open in the editor it needs a checkpoint (stopRecording made one), and restoreCheckpoint undoes it, the pointer track included.
events, one per action: at is Date.now() when your script did it (log it as it runs; the take's recordingStartedAt is on the same clock). x and y are fractions (0 to 1) of the recorded window. For a point (clientX, clientY) of a page shown in that window, from inside the page: border = (outerWidth - innerWidth) / 2; x = (border + clientX) / outerWidth; y = (outerHeight - innerHeight - border + clientY) / outerHeight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| projectId | Yes |