feat: AI Brand Voice Translator integration and Mesh Content fix
This commit is contained in:
@@ -148,17 +148,7 @@ export const LivePreviewCanvas: React.FC<LivePreviewCanvasProps> = ({
|
||||
let offset = 0;
|
||||
return template.scenes.map(scene => {
|
||||
let actualDuration = scene.durationSeconds;
|
||||
|
||||
if (scene.segmentSource === 'brand') {
|
||||
if (scene.type === 'intro') {
|
||||
if (!designMD.introVideoUrl) { actualDuration = 0; }
|
||||
else { actualDuration = (designMD.introDurationFrames || (scene.durationSeconds * 30)) / 30; }
|
||||
}
|
||||
if (scene.type === 'outro') {
|
||||
if (!designMD.outroVideoUrl) { actualDuration = 0; }
|
||||
else { actualDuration = (designMD.outroDurationFrames || (scene.durationSeconds * 30)) / 30; }
|
||||
}
|
||||
} else if (videoDurations && videoDurations[scene.id]) {
|
||||
if (videoDurations && videoDurations[scene.id]) {
|
||||
// Use actual video duration if user uploaded one
|
||||
actualDuration = videoDurations[scene.id];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user