import { Creator } from "@vnve/core";
import { TitleScene, DialogueScene } from "@vnve/template";
const creator = new Creator();
const titleScene = new TitleScene({
title: "V N V E",
subtitle: "Make video programmatically",
backgroundImgSource: "img url",
soundSources: [{ source: "sound url" }],
duration: 3000,
})
const dialogueScene = new DialogueScene({
lines: [
{
name: "Character A",
content: "Charater A says..."
},
{
name: "Character B",
content: "Charater B says..."
}
],
backgroundImgSource: "img url",
soundSources: [{ source: "sound url" }],
});
creator.add(titleScene)
creator.add(dialogueScene)
creator.start().then(videoBlob => {
URL.createObjectURL(videoBlob)
})