Skip to main content

Module browser_capture

Module browser_capture 

Source
Expand description

Linux dig2browser capture inside the node (feature d2b).

Owns a headless Chromium via dig2browser, captures viewport frames (JPEG via CDP Page.captureScreenshot, PNG fallback), and applies dig2-wire input. Transport is the restream G4aControl sidecar — this module never dials HQ.

Modules§

shared
One persistent browser profile shared by every session of this node. Set by HATCHERY_BROWSER_PROFILE (a user-data-dir path); cookies and logins survive node restarts and are the same for all sessions and CLIs.

Structs§

BrowserSessionHandle
BrowserSessionMap
Registry of live browser sessions on this node.

Functions§

shared_map
Shared map for the restream bridge (process-global for the node binary).