DisplayCaptureType
Electron APIs / recorder / DisplayCaptureType
type DisplayCaptureType = "Auto" | "DXGI" | "BitBlt" | "WGC";
Available methods for capturing the display in screen recording or streaming.
These values determine the underlying capture technology used for grabbing screen content. Selection may depend on hardware support, performance, or compatibility.
| Value | Description |
|---|---|
'Auto' | Automatically select the best capture method based on the system's capabilities. |
'DXGI' | Use DXGI (DirectX Graphics Infrastructure) for capturing. Offers high performance on supported systems. |
'BitBlt' | Use BitBlt (Bit Block Transfer), a legacy GDI-based capture method. May be less performant. |
'WGC' | Use Windows Graphics Capture (WGC), available on Windows 10+ with improved performance and stability. |
Example
const captureType: DisplayCaptureType = "DXGI";