Code-first video & image, rendered natively on WebGPU.
import {
createOutputItemSchema,
MultiOutputGenericSchema,
VirtualMediaDataSchema,
} from "@framefields/core";
import { z } from "zod";
export const CaptionEditorNodeConfigSchema = z
.object({
content: z.string().max(200000).default(""),
})
.strict();
export type CaptionEditorNodeConfig = z.infer<
typeof CaptionEditorNodeConfigSchema
>;
export const CaptionEditorResultSchema = MultiOutputGenericSchema(
createOutputItemSchema(z.literal("Caption"), VirtualMediaDataSchema),
);
export type CaptionEditorResult = z.infer<typeof CaptionEditorResultSchema>;