fix(video-pipeline): 修复转场函数调用时缺少分镜数组参数

This commit is contained in:
2026-05-01 16:12:11 +08:00
parent 74680c5ea6
commit 4913e74c05

View File

@@ -650,7 +650,7 @@ async function adjustVideoSpeed(videoPath, targetDurationSec) {
async function addVideos(draftUrl, inputDir, items, timeline, width, height, transitionConfig = null) {
const videoInfos = items.map((item, i) => {
const tl = timeline[i]
const t = getTransition(item, i, items.length, transitionConfig)
const t = getTransition(item, i, items.length, transitionConfig, items)
return {
video_url: item.videoUrl || (item.video ? path.resolve(inputDir, item.video) : null) || item.url || path.resolve(inputDir, item.file),
width,