Skip to content

🎥 Make videos programmatically with React

Update render-still.ts

Jonny Burger6107b07c89d8
diff --git a/packages/renderer/src/render-still.ts b/packages/renderer/src/render-still.ts
index 330d6519ae..3d6df79caf 100644
--- a/packages/renderer/src/render-still.ts
+++ b/packages/renderer/src/render-still.ts
@@ -113,7 +113,13 @@ export const renderStill = async ({
};
page.on('pageerror', errorCallback);
- await setPropsAndEnv({inputProps, envVariables, page, port});
+ await setPropsAndEnv({
+ inputProps,
+ envVariables,
+ page,
+ port,
+ initialFrame: frame,
+ });
const site = `http://localhost:${port}/index.html?composition=${composition.id}`;
await page.goto(site);