🎥 Make videos programmatically with React
update v3 site
Jonny Burgerf21718c688cf
diff --git a/packages/it-tests/src/ssr/render-frames.test.ts b/packages/it-tests/src/ssr/render-frames.test.tsindex eb15b79715..432bc22b3e 100644--- a/packages/it-tests/src/ssr/render-frames.test.ts+++ b/packages/it-tests/src/ssr/render-frames.test.ts@@ -12,7 +12,7 @@ import execa from "execa";test("Legacy SSR way or rendering videos should still work", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://quizzical-jackson-ad3285.netlify.app/",+ "https://fascinating-selkie-c7398a.netlify.app/",{puppeteerInstance,}@@ -38,7 +38,7 @@ test("Legacy SSR way or rendering videos should still work", async () => {imageFormat: "jpeg",inputProps: {},onFrameUpdate: () => undefined,- webpackBundle: "https://quizzical-jackson-ad3285.netlify.app/",+ webpackBundle: "https://fascinating-selkie-c7398a.netlify.app/",parallelism: null,frameRange: [0, 10],outputDir: framesDir,diff --git a/packages/it-tests/src/ssr/render-media.test.ts b/packages/it-tests/src/ssr/render-media.test.tsindex 151189b7f0..235be971d7 100644--- a/packages/it-tests/src/ssr/render-media.test.ts+++ b/packages/it-tests/src/ssr/render-media.test.ts@@ -6,7 +6,7 @@ import { existsSync } from "fs";test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://quizzical-jackson-ad3285.netlify.app/",+ "https://fascinating-selkie-c7398a.netlify.app/",{puppeteerInstance,}@@ -25,7 +25,7 @@ test("Render video with browser instance open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://quizzical-jackson-ad3285.netlify.app/",+ serveUrl: "https://fascinating-selkie-c7398a.netlify.app/",composition: reactSvg,frameRange: [0, 2],puppeteerInstance,@@ -36,7 +36,7 @@ test("Render video with browser instance open", async () => {test("Render video with browser instance not open", async () => {const compositions = await getCompositions(- "https://quizzical-jackson-ad3285.netlify.app/"+ "https://fascinating-selkie-c7398a.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -52,7 +52,7 @@ test("Render video with browser instance not open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://quizzical-jackson-ad3285.netlify.app/",+ serveUrl: "https://fascinating-selkie-c7398a.netlify.app/",composition: reactSvg,frameRange: [0, 2],});@@ -69,7 +69,7 @@ test("should fail on invalid CRF", async () => {return renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://quizzical-jackson-ad3285.netlify.app/",+ serveUrl: "https://fascinating-selkie-c7398a.netlify.app/",// @ts-expect-errorcrf: "wrong",config: {diff --git a/packages/it-tests/src/ssr/render-still.test.ts b/packages/it-tests/src/ssr/render-still.test.tsindex 5f19c84783..eaded36fd8 100644--- a/packages/it-tests/src/ssr/render-still.test.ts+++ b/packages/it-tests/src/ssr/render-still.test.ts@@ -15,7 +15,7 @@ afterEach(async () => {test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://quizzical-jackson-ad3285.netlify.app/",+ "https://fascinating-selkie-c7398a.netlify.app/",{puppeteerInstance,}@@ -33,7 +33,7 @@ test("Render video with browser instance open", async () => {await renderStill({output: outPath,- serveUrl: "https://quizzical-jackson-ad3285.netlify.app/",+ serveUrl: "https://fascinating-selkie-c7398a.netlify.app/",composition: reactSvg,puppeteerInstance,});@@ -42,7 +42,7 @@ test("Render video with browser instance open", async () => {test("Render still with browser instance not open and legacy webpack config", async () => {const compositions = await getCompositions(- "https://quizzical-jackson-ad3285.netlify.app/"+ "https://fascinating-selkie-c7398a.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -57,7 +57,7 @@ test("Render still with browser instance not open and legacy webpack config", asawait renderStill({output: outPath,- webpackBundle: "https://quizzical-jackson-ad3285.netlify.app/",+ webpackBundle: "https://fascinating-selkie-c7398a.netlify.app/",composition: reactSvg,});expect(existsSync(outPath)).toBe(true);diff --git a/packages/lambda/src/test/integration/renders/old-version.test.ts b/packages/lambda/src/test/integration/renders/old-version.test.tsindex 10bf2b2790..37ceae061c 100644--- a/packages/lambda/src/test/integration/renders/old-version.test.ts+++ b/packages/lambda/src/test/integration/renders/old-version.test.ts@@ -29,7 +29,7 @@ test('Should be able to render to another bucket', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl: 'https://competent-mccarthy-56f7c9.netlify.app/',+ serveUrl: 'https://fascinating-selkie-c7398a.netlify.app/',chromiumOptions: {},codec: 'h264-mkv',composition: 'react-svg',diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.tsindex 8b904d5377..e2d6098ab4 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -31,7 +31,7 @@ test('Should be able to render to another bucket', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl: 'https://quizzical-jackson-ad3285.netlify.app/',+ serveUrl: 'https://fascinating-selkie-c7398a.netlify.app/',chromiumOptions: {},codec: 'h264-mkv',composition: 'react-svg',diff --git a/packages/lambda/src/test/integration/renders/silent-audio.test.ts b/packages/lambda/src/test/integration/renders/silent-audio.test.tsindex b6dc330227..e2f7bcb59a 100644--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts@@ -31,7 +31,7 @@ test('Should add silent audio if there is no audio', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl: 'https://quizzical-jackson-ad3285.netlify.app/',+ serveUrl: 'https://fascinating-selkie-c7398a.netlify.app/',chromiumOptions: {},codec: 'h264-mkv',composition: 'react-svg',diff --git a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts b/packages/lambda/src/test/integration/renders/transparent-webm.test.tsindex ffa7b8c794..28ae311532 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -33,7 +33,7 @@ test('Should make a transparent video', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl: 'https://quizzical-jackson-ad3285.netlify.app',+ serveUrl: 'https://fascinating-selkie-c7398a.netlify.app/',chromiumOptions: {},codec: 'vp8',composition: 'ten-frame-tester',