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
Extends
Properties
Property | Type | Description |
---|---|---|
duration | number | Duration of the current split segment in milliseconds. |
error? | string | A descriptive error message if the recording failed to complete successfully. undefined if no error occurred, |
filePath? | string | The full file path to the saved video recording. undefined if the recording failed. |
nextFilePath | string | File path of the next recording segment that will be created after this split. |
reason? | number | The 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. |
splitCount | number | The current split index. Indicates how many splits have occurred so far. |
startTimeEpoch? | number | Epoch timestamp (in milliseconds) of when the current split began. |
stats? | RecorderStats | Performance and runtime statistics collected during the recording session, such as frame rate, dropped frames, or encoding stats. |