Skip to main content

RecordingOptions

Electron APIs / recorder / RecordingOptions

Defines the configuration options for starting a recording session.

Extends RecordingBaseOptions and includes optional split settings and the output file path.

See

RecordingBaseOptions

Extends

Properties

PropertyTypeDescription
audioTrack?numberDefines which audio track(s) should be used for recording. If separateAudioTracks is enabled, it may include multiple tracks such as Track1, Track2, and Track3. Default Track1 See AudioTracks
autoShutdownOnGameExit?booleanAutomatically stops the recording when the game exits. This only applies when recording with a Game capture source.
fileFormat?kFileFormatSpecifies the container format for the output video file. Common formats include 'fragmented_mp4', 'mkv', 'flv', etc. Default 'fragmented_mp4' See kFileFormat
filePathstringThe full path to the output file (without the file extension). This determines where the recorded video will be saved. Example "C:/Videos/MyGameRecording"
split?SplitOptionsConfiguration for splitting the video recording into smaller segments. If not set, the recording will be saved as a single file. See SplitOptions