Skip to content

🎥 Make videos programmatically with React

debug statemetns

Jonny Burgerab926ae8d725
diff --git a/packages/core/src/RemotionRoot.tsx b/packages/core/src/RemotionRoot.tsx
index 2d59b8a4d5..6550a8bbc2 100644
--- a/packages/core/src/RemotionRoot.tsx
+++ b/packages/core/src/RemotionRoot.tsx
@@ -8,6 +8,7 @@ import React, {
import {SharedAudioContextProvider} from './audio/shared-audio-tags';
import {CompositionManagerProvider} from './CompositionManager';
import {continueRender, delayRender} from './delay-render';
+import {INITIAL_FRAME_LOCAL_STORAGE_KEY} from './initial-frame';
import {NonceContext, TNonceContext} from './nonce';
import {random} from './random';
import {
@@ -22,7 +23,11 @@ export const RemotionRoot: React.FC<{
children: React.ReactNode;
}> = ({children}) => {
const [remotionRootId] = useState(() => String(random(null)));
- console.log('INITIAL FRAME', window.remotion_initialFrame);
+ console.log(
+ 'INITIAL FRAME',
+ window.remotion_initialFrame,
+ localStorage.getItem(INITIAL_FRAME_LOCAL_STORAGE_KEY)
+ );
const [frame, setFrame] = useState<number>(window.remotion_initialFrame ?? 0);
const [playing, setPlaying] = useState<boolean>(false);
const imperativePlaying = useRef<boolean>(false);
diff --git a/packages/renderer/src/render-frames.ts b/packages/renderer/src/render-frames.ts
index 31e13965d0..3dfbd6e8ed 100644
--- a/packages/renderer/src/render-frames.ts
+++ b/packages/renderer/src/render-frames.ts
@@ -161,6 +161,7 @@ const innerRenderFrames = async ({
? 0
: frameRange[0];
+ console.log({frameRange});
await setPropsAndEnv({
inputProps,
envVariables,