🎥 Make videos programmatically with React
update netlify links
Jonny Burger0bc63debca8f
diff --git a/packages/it-tests/src/ssr/cancel-after-success.test.ts b/packages/it-tests/src/ssr/cancel-after-success.test.tsindex 24cf028814..4a26ef644c 100644--- a/packages/it-tests/src/ssr/cancel-after-success.test.ts+++ b/packages/it-tests/src/ssr/cancel-after-success.test.ts@@ -8,7 +8,7 @@ test("Cancelling after success should not throw error", async () => {const outputLocation = "out/render.mp4";await renderMedia({codec: "h264",- serveUrl: "https://silly-crostata-c4c336.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: {durationInFrames: 4,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-renderframes.test.ts b/packages/it-tests/src/ssr/cancel-renderframes.test.tsindex 24594d504c..d153c201e7 100644--- a/packages/it-tests/src/ssr/cancel-renderframes.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderframes.test.ts@@ -5,7 +5,7 @@ test("Should be able to cancel render", async () => {try {const { cancel, cancelSignal } = makeCancelSignal();const val = renderFrames({- serveUrl: "https://silly-crostata-c4c336.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts b/packages/it-tests/src/ssr/cancel-rendermedia.test.tsindex 60d2c2d4a3..d7a0d0630f 100644--- a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts+++ b/packages/it-tests/src/ssr/cancel-rendermedia.test.ts@@ -6,7 +6,7 @@ test("Should be able to cancel render", async () => {const { cancel, cancelSignal } = makeCancelSignal();const val = renderMedia({codec: "h264",- serveUrl: "https://silly-crostata-c4c336.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-renderstill.test.ts b/packages/it-tests/src/ssr/cancel-renderstill.test.tsindex 6ca91dfc1d..d8991ee013 100644--- a/packages/it-tests/src/ssr/cancel-renderstill.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderstill.test.ts@@ -5,7 +5,7 @@ test("Should be able to cancel render", async () => {try {const { cancel, cancelSignal } = makeCancelSignal();const val = renderStill({- serveUrl: "https://silly-crostata-c4c336.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts b/packages/it-tests/src/ssr/fatal-error-correct-error.test.tsindex a473ea564f..a57e0d1542 100644--- a/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts+++ b/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts@@ -5,7 +5,7 @@ test("Fatal error on frame 10 should yield correct error", async () => {await expect(() => {return renderMedia({codec: "h264",- serveUrl: "https://silly-crostata-c4c336.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/render-frames.test.ts b/packages/it-tests/src/ssr/render-frames.test.tsindex 86ec06870b..da4204f113 100644--- a/packages/it-tests/src/ssr/render-frames.test.ts+++ b/packages/it-tests/src/ssr/render-frames.test.ts@@ -13,7 +13,7 @@ import { expect, test } from "vitest";test("Legacy SSR way of rendering videos should still work", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ "https://gleaming-wisp-de5d2a.netlify.app/",{puppeteerInstance,}@@ -39,8 +39,7 @@ test("Legacy SSR way of rendering videos should still work", async () => {imageFormat: "jpeg",inputProps: {},onFrameUpdate: () => undefined,- webpackBundle:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ webpackBundle: "https://gleaming-wisp-de5d2a.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 a52d6956a8..39c52f4fd8 100644--- a/packages/it-tests/src/ssr/render-media.test.ts+++ b/packages/it-tests/src/ssr/render-media.test.ts@@ -7,7 +7,7 @@ import { expect, test } from "vitest";test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ "https://gleaming-wisp-de5d2a.netlify.app/",{puppeteerInstance,}@@ -26,8 +26,7 @@ test("Render video with browser instance open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: reactSvg,frameRange: [0, 2],puppeteerInstance,@@ -38,7 +37,7 @@ test("Render video with browser instance open", async () => {test("Render video with browser instance not open", async () => {const compositions = await getCompositions(- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/"+ "https://gleaming-wisp-de5d2a.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -54,8 +53,7 @@ test("Render video with browser instance not open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: reactSvg,frameRange: [0, 2],});@@ -72,8 +70,7 @@ test("should fail on invalid CRF", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",// @ts-expect-errorcrf: "wrong",config: {@@ -98,7 +95,7 @@ test("should fail on invalid CRF", async () => {test("Render video to a buffer", async () => {const compositions = await getCompositions(- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/"+ "https://gleaming-wisp-de5d2a.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -109,8 +106,7 @@ test("Render video to a buffer", async () => {const buffer = await renderMedia({codec: "h264",- serveUrl:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: reactSvg,frameRange: [0, 2],});diff --git a/packages/it-tests/src/ssr/render-still.test.ts b/packages/it-tests/src/ssr/render-still.test.tsindex 98464c0096..6dea6fbb1e 100644--- a/packages/it-tests/src/ssr/render-still.test.ts+++ b/packages/it-tests/src/ssr/render-still.test.ts@@ -16,7 +16,7 @@ afterEach(async () => {test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ "https://gleaming-wisp-de5d2a.netlify.app/",{puppeteerInstance,}@@ -34,8 +34,7 @@ test("Render video with browser instance open", async () => {await renderStill({output: outPath,- serveUrl:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",composition: reactSvg,puppeteerInstance,});@@ -44,7 +43,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://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/"+ "https://gleaming-wisp-de5d2a.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -59,8 +58,7 @@ test("Render still with browser instance not open and legacy webpack config", asawait renderStill({output: outPath,- webpackBundle:- "https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/",+ webpackBundle: "https://gleaming-wisp-de5d2a.netlify.app/",composition: reactSvg,});expect(existsSync(outPath)).toBe(true);diff --git a/packages/lambda/src/test/integration/renders/gif.test.ts b/packages/lambda/src/test/integration/renders/gif.test.tsindex a25261c904..f36fc710e8 100644--- a/packages/lambda/src/test/integration/renders/gif.test.ts+++ b/packages/lambda/src/test/integration/renders/gif.test.ts@@ -31,8 +31,7 @@ test('Should make a distributed GIF', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl:- 'https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',chromiumOptions: {},codec: 'gif',composition: 'framer',diff --git a/packages/lambda/src/test/integration/renders/old-version.test.ts b/packages/lambda/src/test/integration/renders/old-version.test.tsindex a3955b0342..deb1609f92 100644--- a/packages/lambda/src/test/integration/renders/old-version.test.ts+++ b/packages/lambda/src/test/integration/renders/old-version.test.ts@@ -23,7 +23,7 @@ afterAll(async () => {await RenderInternals.killAllBrowsers();});-test('Should be able to render to another bucket', async () => {+test('Should fail when using an incompatible version', async () => {process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE = '2048';const res = await handler(diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.tsindex 42d22acd11..5cb37f2b45 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -30,8 +30,7 @@ test('Should be able to render to another bucket', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl:- 'https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',chromiumOptions: {},codec: 'h264',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 2d8f6a32c4..450ef3e302 100644--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts@@ -30,8 +30,7 @@ test('Should add silent audio if there is no audio', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl:- 'https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',chromiumOptions: {},codec: 'h264',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 8242038f05..ea4346a53f 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -32,8 +32,7 @@ test('Should make a transparent video', async () => {const res = await handler({type: LambdaRoutines.start,- serveUrl:- 'https://6297949544e290044cecb257--cute-kitsune-214ea5.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',chromiumOptions: {},codec: 'vp8',composition: 'ten-frame-tester',diff --git a/packages/renderer/src/test/render-still.test.ts b/packages/renderer/src/test/render-still.test.tsindex 541e54cedf..91345f45a4 100644--- a/packages/renderer/src/test/render-still.test.ts+++ b/packages/renderer/src/test/render-still.test.ts@@ -15,7 +15,7 @@ test('Need to pass valid metadata', () => {},frame: 0,output: '/file/output.png',- serveUrl: 'https://silly-crostata-c4c336.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',downloadMap: makeDownloadMap(),})).rejects.toThrow(/not be NaN, but is NaN/);@@ -34,7 +34,7 @@ test('Need to pass valid metadata', () => {},frame: 200,output: '/file/output.png',- serveUrl: 'https://silly-crostata-c4c336.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',downloadMap: makeDownloadMap(),})).rejects.toThrow(@@ -57,7 +57,7 @@ test('Catches invalid image format', () => {imageFormat: 'jjj',frame: 200,output: '/file/output.png',- serveUrl: 'https://silly-crostata-c4c336.netlify.app/',+ serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',})).rejects.toThrow(/Image format should be either "png" or "jpeg"/);});