MCPcopy
hub / github.com/midrender/revideo / handleFrame

Method handleFrame

packages/core/src/exporter/WasmExporter.ts:37–41  ·  view source on GitHub ↗
(canvas: HTMLCanvasElement)

Source from the content-addressed store, hash-verified

35 private encoder: any;
36
37 public async handleFrame(canvas: HTMLCanvasElement): Promise<void> {
38 const frame = new VideoFrame(canvas, {timestamp: 0});
39 await this.encoder.addFrame(frame);
40 frame.close();
41 }
42
43 public async stop(): Promise<void> {
44 const buf = await this.encoder.end();

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected