🎥 Make videos programmatically with React
also make inputProps optional
Jonny Burgerdb469f708510
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.mdindex c5439b4f1f..ff779a56d5 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.md+++ b/packages/docs/docs/lambda/rendermediaonlambda.md@@ -19,14 +19,9 @@ const { bucketName, renderId } = await renderMediaOnLambda({region: "us-east-1",functionName: "remotion-render-bds9aab",composition: "MyVideo",- framesPerLambda: 20,serveUrl:"https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw",- inputProps: {},codec: "h264",- imageFormat: "jpeg",- maxRetries: 1,- privacy: "public",});```@@ -76,6 +71,8 @@ The `id` of the [composition](/docs/composition) you want to render.### `inputProps`+_optional since v3.2.26_+React props that are passed to your composition. You define the shape of the props that the component accepts.### `codec`@@ -94,6 +91,8 @@ Disables audio output. See also [`renderMedia() -> muted`](/docs/renderer/render### `imageFormat`+_optional since v3.2.26_+See [`renderMedia() -> imageFormat`](/docs/renderer/render-media#imageformat).### `crf`diff --git a/packages/lambda/src/api/render-media-on-lambda.ts b/packages/lambda/src/api/render-media-on-lambda.tsindex ad71e1ceed..211b256598 100644--- a/packages/lambda/src/api/render-media-on-lambda.ts+++ b/packages/lambda/src/api/render-media-on-lambda.ts@@ -25,7 +25,7 @@ export type RenderMediaOnLambdaInput = {functionName: string;serveUrl: string;composition: string;- inputProps: unknown;+ inputProps?: unknown;codec: LambdaCodec;imageFormat?: ImageFormat;crf?: number | undefined;@@ -120,7 +120,7 @@ export const renderMediaOnLambda = async ({framesPerLambda: framesPerLambda ?? null,composition,serveUrl: realServeUrl,- inputProps,+ inputProps: inputProps ?? {},codec: actualCodec,imageFormat: imageFormat ?? 'jpeg',crf,