Skip to content

grandi / initialize

Variable: initialize ​

const initialize: () => 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");

Apache-2.0 licensed. NDI is a trademark of Vizrt NDI AB.