Skip to content

🎥 Make videos programmatically with React

Fixes #6179

Jonny Burgerb790beb56044
diff --git a/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx b/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
index c4a8fead31..29d8de04df 100644
--- a/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
+++ b/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
@@ -52,7 +52,7 @@ export const CaptionOverlay: React.FC<{
return () => {
cancel();
};
- }, [file.name, subEditorOpen]);
+ }, [env.isStudio, file.name, subEditorOpen]);
useEffect(() => {
if (changeStatus === "initial" || changeStatus === "changed") {
diff --git a/packages/template-recorder/remotion/captions/editor/CaptionsEditor.tsx b/packages/template-recorder/remotion/captions/editor/CaptionsEditor.tsx
index 7928476440..61d4048a9e 100644
--- a/packages/template-recorder/remotion/captions/editor/CaptionsEditor.tsx
+++ b/packages/template-recorder/remotion/captions/editor/CaptionsEditor.tsx
@@ -116,7 +116,7 @@ export const CaptionsEditor: React.FC<{
index={i}
longestNumberLength={longestNumberLength}
caption={caption}
- isInitialCaption={caption.startMs === initialCaption.endMs}
+ isInitialCaption={caption.startMs === initialCaption.startMs}
trimStart={trimStart}
onUpdateText={onChangeText}
/>