Skip to main content

WindowCaptureSourceSettings

Electron APIs / Recorder / WindowCaptureSourceSettings

Settings for capturing a specific window as a video source.

Extends CaptureSourceSettings with window-specific capture options, including capture method, process identification, cursor visibility, and display compatibility.

See

CaptureSourceSettings

Extends

Properties

PropertyTypeDescription
captureCursor?booleanWhether to include the mouse cursor in the window capture. Default true
clientArea?booleanIf true, captures only the client area of the window (excluding borders and title bar). Default true
compatibility?booleanEnables BitBlt compatibility mode for multi-GPU (multi-adapter) setups. May improve stability when using traditional window capture on systems with more than one GPU.
executablestringThe name of the executable associated with the window to capture. This is typically the process name (e.g., "notepad.exe" or "chrome.exe").
forceSDR?booleanIf true, forces capture to standard dynamic range (SDR), disabling high dynamic range output if the window supports it.
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
type?anyThe capture method used to record the window. Options depend on system capabilities and may include 'Auto', 'BitBlt', or 'WGC' (Windows Graphics Capture). Default 'Auto'