Skip to content

🎥 Make videos programmatically with React

Recorder template: Label some delayRender() items

JonnyBurger1a5b2c249083
diff --git a/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx b/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
index bb59ad8b7e..90bfc32d05 100644
--- a/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
+++ b/packages/template-recorder/remotion/captions/editor/CaptionOverlay.tsx
@@ -15,7 +15,7 @@ export const CaptionOverlay: React.FC<{
trimStart: number;
}> = ({ children, file, theme, trimStart }) => {
const [captions, setCaptions] = useState<Caption[] | null>(null);
- const [handle] = useState(() => delayRender());
+ const [handle] = useState(() => delayRender("Waiting for captions "));
const [subEditorOpen, setSubEditorOpen] = useState<Caption | false>(false);
const [changeStatus, setChangeStatus] = useState<
diff --git a/packages/template-recorder/remotion/helpers/WaitForFonts.tsx b/packages/template-recorder/remotion/helpers/WaitForFonts.tsx
index 1faab8a99e..2642a437c5 100644
--- a/packages/template-recorder/remotion/helpers/WaitForFonts.tsx
+++ b/packages/template-recorder/remotion/helpers/WaitForFonts.tsx
@@ -10,7 +10,9 @@ export const WaitForFonts: React.FC<{
children: React.ReactNode;
}> = ({ children }) => {
const [fontsLoaded, setFontsLoaded] = useState(false);
- const [handle] = useState(() => delayRender());
+ const [handle] = useState(() =>
+ delayRender("Waiting for fonts to be loaded"),
+ );
useEffect(() => {
const delay = delayRender("Waiting for fonts to be loaded");
diff --git a/packages/template-recorder/remotion/scenes/EndCard/LeftSide.tsx b/packages/template-recorder/remotion/scenes/EndCard/LeftSide.tsx
index 2061827c9b..e690070c25 100644
--- a/packages/template-recorder/remotion/scenes/EndCard/LeftSide.tsx
+++ b/packages/template-recorder/remotion/scenes/EndCard/LeftSide.tsx
@@ -70,7 +70,7 @@ export const LeftSide: React.FC<{
}> = ({ platform, channel, links, theme }) => {
const ref = useRef<HTMLDivElement>(null);
const scaler = useRef<HTMLDivElement>(null);
- const [handle] = useState(() => delayRender());
+ const [handle] = useState(() => delayRender("Waiting for measurement"));
const [contentHeight, setHeight] = useState(0);
const { fps, width } = useVideoConfig();