Skip to main content

SplitRecordArgs

Electron APIs / recorder / SplitRecordArgs

Information about a split video segment created during an ongoing recording. This extends RecordEventArgs with specific details for split-related events.

Example

const onSplit = (args: SplitRecordArgs) => {
console.log(`Split #${args.splitCount} created: ${args.filePath}`);
console.log(`Next segment will be saved to: ${args.nextFilePath}`);
};

See

RecordEventArgs

Extends

Properties

PropertyTypeDescription
durationnumberDuration of the current split segment in milliseconds.
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.
nextFilePathstringFile path of the next recording segment that will be created after this split.
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.
splitCountnumberThe current split index. Indicates how many splits have occurred so far.
startTimeEpoch?numberEpoch timestamp (in milliseconds) of when the current split began.
stats?RecorderStatsPerformance and runtime statistics collected during the recording session, such as frame rate, dropped frames, or encoding stats.