Module sc_stream

Module sc_stream 

Source
Expand description

Swift FFI based SCStream implementation

This is the primary (and only) implementation in v1.0+. All ScreenCaptureKit operations use direct Swift FFI bindings.

Each stream owns a heap-allocated StreamContext that holds its output handlers and delegate. The context pointer is passed through FFI so that callbacks route directly to the owning stream — no global registries.

Structs§

SCStream
SCStream is a lightweight wrapper around the Swift SCStream instance. It provides direct FFI access to ScreenCaptureKit functionality.