🎥 Make videos programmatically with React
new netlify URL 2
Jonny Burger591b87e139ed
diff --git a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts b/packages/it-tests/src/ssr/cancel-rendermedia.test.tsindex d4df1fda50..93a1282794 100644--- a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts+++ b/packages/it-tests/src/ssr/cancel-rendermedia.test.ts@@ -6,7 +6,8 @@ test("Should be able to cancel render", async () => {const { cancel, cancelSignal } = makeCancelSignal();const val = renderMedia({codec: "h264",- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.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 2b5328d507..4eb8e4d1ea 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 { RenderInternals } from "@remotion/renderer";test("Legacy SSR way of rendering videos should still work", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://thunderous-heliotrope-48a698.netlify.app/",+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",{puppeteerInstance,}@@ -39,7 +39,8 @@ test("Legacy SSR way of rendering videos should still work", async () => {imageFormat: "jpeg",inputProps: {},onFrameUpdate: () => undefined,- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",concurrency: 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 dc3ef7131a..ef5d514a14 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://thunderous-heliotrope-48a698.netlify.app/",+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",{puppeteerInstance,}@@ -26,7 +26,8 @@ test("Render video with browser instance open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",composition: reactSvg,frameRange: [0, 2],puppeteerInstance,@@ -37,7 +38,7 @@ test("Render video with browser instance open", async () => {test("Render video with browser instance not open", async () => {const compositions = await getCompositions(- "https://thunderous-heliotrope-48a698.netlify.app/"+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -53,7 +54,8 @@ test("Render video with browser instance not open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",composition: reactSvg,frameRange: [0, 2],});@@ -70,7 +72,8 @@ test("should fail on invalid CRF", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",// @ts-expect-errorcrf: "wrong",config: {@@ -95,7 +98,7 @@ test("should fail on invalid CRF", async () => {test("Render video to a buffer", async () => {const compositions = await getCompositions(- "https://thunderous-heliotrope-48a698.netlify.app/"+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -106,7 +109,8 @@ test("Render video to a buffer", async () => {const { buffer } = await renderMedia({codec: "h264",- serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",+ serveUrl:+ "https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/",composition: reactSvg,frameRange: [0, 2],});diff --git a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts b/packages/lambda/src/test/integration/renders/transparent-webm.test.tsindex 0eda363259..4dd191a0ec 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -36,7 +36,8 @@ test('Should make a transparent video', async () => {const res = (await handler({type: LambdaRoutines.start,- serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',+ serveUrl:+ 'https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.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 a52c3c45d8..7fb65cfa60 100644--- a/packages/renderer/src/test/render-still.test.ts+++ b/packages/renderer/src/test/render-still.test.ts@@ -16,7 +16,8 @@ test('Need to pass valid metadata', async () => {},frame: 0,output: '/file/output.png',- serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',+ serveUrl:+ 'https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/',downloadMap,verbose: false,indent: false,@@ -37,7 +38,8 @@ test('Returns buffer in promise result', async () => {defaultProps: undefined,},frame: 0,- serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',+ serveUrl:+ 'https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/',downloadMap,verbose: false,indent: false,@@ -60,7 +62,8 @@ test('Need to pass valid metadata', async () => {},frame: 200,output: '/file/output.png',- serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',+ serveUrl:+ 'https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/',downloadMap,verbose: false,indent: false,@@ -86,7 +89,8 @@ test('Catches invalid image format', () => {imageFormat: 'jjj',frame: 200,output: '/file/output.png',- serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',+ serveUrl:+ 'https://6477646d36b0613569ac2e2f--melodious-sopapillas-d35e3e.netlify.app/',})).rejects.toThrow(/Image format should be one of: "png", "jpeg", "pdf", "webp"/