🎥 Make videos programmatically with React
fixes
Jonny Burgerdb924c6b3853
diff --git a/packages/renderer/src/render-still.ts b/packages/renderer/src/render-still.tsindex fae982ae15..5e3283ac25 100644--- a/packages/renderer/src/render-still.ts+++ b/packages/renderer/src/render-still.ts@@ -111,7 +111,13 @@ export const renderStill = async ({page.on('pageerror', errorCallback);const site = `${serveUrl}/index.html?composition=${composition.id}`;- await setPropsAndEnv({inputProps, envVariables, page, serveUrl});+ await setPropsAndEnv({+ inputProps,+ envVariables,+ page,+ serveUrl,+ initialFrame: frame,+ });await page.goto(site);try {diff --git a/packages/renderer/src/test/render-still.test.ts b/packages/renderer/src/test/render-still.test.tsindex 834064a63d..19230e7210 100644--- a/packages/renderer/src/test/render-still.test.ts+++ b/packages/renderer/src/test/render-still.test.ts@@ -12,7 +12,7 @@ test('Need to pass valid metadata', async () => {},frame: 0,output: '/file/output.png',- webpackBundle: '/hi/there',+ serveUrl: '/hi/there',})).rejects.toThrow(/not be NaN, but is NaN/);});@@ -29,7 +29,7 @@ test('Need to pass valid metadata', async () => {},frame: 200,output: '/file/output.png',- webpackBundle: '/hi/there',+ serveUrl: '/hi/there',})).rejects.toThrow(/Cannot use frame 200: Duration of composition is 30, therefore the highest frame that can be rendered is 29/@@ -50,7 +50,7 @@ test('Catches invalid image format', async () => {imageFormat: 'jjj',frame: 200,output: '/file/output.png',- webpackBundle: '/hi/there',+ serveUrl: '/hi/there',})).rejects.toThrow(/Image format should be either "png" or "jpeg"/);});