feat: Support brand Intro and Outro videos in template fields

This commit is contained in:
2026-06-02 22:55:16 -05:00
parent dc6cab57bd
commit e85d8eabcc
2 changed files with 36 additions and 13 deletions
+10 -1
View File
@@ -372,7 +372,16 @@ export function compileExpressToTimeline(
...(field.type === 'image' || field.type === 'video' ? {
width: field.position.w,
height: field.position.h,
objectFit: (field.style.mediaFit || 'cover') as 'cover' | 'contain' | 'fill',
objectFit: ((field.nature === 'brand-variable' && field.brandSource === 'intro-video')
? (designMD.introVideoFit || field.style.mediaFit || 'cover')
: (field.nature === 'brand-variable' && field.brandSource === 'outro-video')
? (designMD.outroVideoFit || field.style.mediaFit || 'cover')
: (field.style.mediaFit || 'cover')) as 'cover' | 'contain' | 'fill',
containBgColor: (field.nature === 'brand-variable' && field.brandSource === 'intro-video')
? designMD.introVideoBgColor
: (field.nature === 'brand-variable' && field.brandSource === 'outro-video')
? designMD.outroVideoBgColor
: undefined,
} : {}),
...(field.type === 'shape' ? {
width: field.position.w,