fix(video-pipeline): 修复转场函数调用时缺少分镜数组参数
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user