Skip to main content

RecordEventArgs

Electron APIs / Recorder / RecordEventArgs

Information about a completed recording event, including file path, status, error (if any), and stats.

Example

const handleRecordingStopped = (args: RecordEventArgs) => {
if (args.error) {
console.error("Recording failed:", args.error);
} else {
console.log("Recording saved to:", args.filePath);
}
};

Extended by

Properties

PropertyTypeDescription
error?stringA descriptive error message if the recording failed to complete successfully. undefined if no error occurred,
filePath?stringThe full file path to the saved video recording. undefined if the recording failed.
reason?numberThe reason the recording was stopped, either by the user or due to an error. This can be a predefined ErrorCode or a custom numeric value.
stats?RecorderStatsPerformance and runtime statistics collected during the recording session, such as frame rate, dropped frames, or encoding stats.