feat: Support brand Intro and Outro videos in template fields
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user