grandi / initialize
Variable: initialize
constinitialize: () =>boolean=addon.initialize
Defined in: index.ts:205
Optionally initializes the process-global NDI library. The SDK does not require this call, but eager initialization is recommended for explicit lifecycle management.
Returns
boolean
True if initialization was successful and the CPU is supported.
Example
js
import { initialize } from "grandi";
if (!initialize()) throw new Error("NDI init failed");