linuxRecord
Contents:
linuxRecord(filepath)
Start a screen recording on Linux using an X11 display. The DISPLAY environment variable must identify the display. Wayland-only sessions are not supported.
import { linuxRecord } from "@guidepup/record";
(async () => {
// Start the screen recording.
const stopRecording = linuxRecord("./recordings/screenRecording.mp4");
// ... perform some commands.
// Stop and finalize the screen recording.
await stopRecording();
})();
Parameters:
filepathstring The file path to save the screen recording to.
Returns: Function An async function returning Promise<void> that stops and finalizes the screen recording.