Member Junction
    Preparing search index...

    The encode worker as the host drives it: a worker_threads.Worker matches it, and tests inject a fake. Member names mirror Node's Worker.

    interface IVideoEncodeWorker {
        on(event: "message", listener: (reply: VideoEncodeReply) => void): this;
        on(event: "error", listener: (err: Error) => void): this;
        on(event: "exit", listener: (code: number) => void): this;
        postMessage(
            message: VideoEncodeRequest,
            transferList: readonly ArrayBuffer[],
        ): void;
        terminate(): Promise<number>;
        unref(): void;
    }
    Index

    Methods