feat: AI Brand Voice Translator integration and Mesh Content fix

This commit is contained in:
2026-06-03 23:56:58 -05:00
parent ad8622e243
commit 0676e9f0a8
40 changed files with 3186 additions and 1481 deletions
+1 -11
View File
@@ -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];
}