Skip to main content

CaptureSourceSettings

Electron APIs / recorder / CaptureSourceSettings

Configuration settings for how a capture source is rendered in the output video.

These settings control layout behavior such as stretching and centering the captured content relative to the output resolution.

Extended by

Properties

PropertyTypeDescription
name?stringUnique Source name (for easier identification).
stretchToOutputSize?booleanWhether the capture source should be centered and stretched to fit the output video size. When set to true, the source will automatically scale and center itself to match the output resolution, even if it requires stretching. Default true (if transform is not provided).
transform?SourceTransformOptionsTransform options for the source.