import { Creator } from "@vnve/core";
import { TitleScene, DialogueScene } from "@vnve/template";
const creator = new Creator();
const titleScene = new TitleScene({
title: "主标题",
subtitle: "副标题",
backgroundImgSource: "图片链接",
soundSources: [{ source: "音频链接" }],
duration: 4000,
})
const dialogueScene = new DialogueScene({
lines: [
{ name: "角色A", content: "角色A的台词" },
{ name: "角色B", content: "角色B的台词" },
],
backgroundImgSource: "图片链接",
soundSources: [{ source: "音频链接" }],
});
creator.addScene(titleScene)
creator.addScene(dialogueScene)
creator.start().then(videoBlob => {
URL.createObjectURL(videoBlob)
})