🎥 Make videos programmatically with React
allow to pass inputProps to renderVideoOnLambda()
Jonny Burgerac1a17df348e
diff --git a/packages/lambda/src/api/render-video-on-lambda.ts b/packages/lambda/src/api/render-video-on-lambda.tsindex 5dd9f22252..7d37828580 100644--- a/packages/lambda/src/api/render-video-on-lambda.ts+++ b/packages/lambda/src/api/render-video-on-lambda.ts@@ -1,4 +1,3 @@-import {CliInternals} from '@remotion/cli';import {parsedCli} from '../cli/args';import {callLambda} from '../shared/call-lambda';import {LambdaRoutines} from '../shared/constants';@@ -6,9 +5,11 @@ import {LambdaRoutines} from '../shared/constants';export const renderVideoOnLambda = async ({functionName,serveUrl,+ inputProps,}: {functionName: string;serveUrl: string;+ inputProps: unknown;}) => {const res = await callLambda({functionName,@@ -18,7 +19,7 @@ export const renderVideoOnLambda = async ({chunkSize: 20,composition: parsedCli._[2],serveUrl,- inputProps: CliInternals.getInputProps(),+ inputProps,},});return {diff --git a/packages/lambda/src/cli/render.ts b/packages/lambda/src/cli/render.tsindex c3ef0bed29..56bcdc7532 100644--- a/packages/lambda/src/cli/render.ts+++ b/packages/lambda/src/cli/render.ts@@ -1,3 +1,4 @@+import {CliInternals} from '@remotion/cli';import {BINARY_NAME} from '../api/bundle-remotion';import {getDeployedLambdas} from '../api/get-deployed-lambdas';import {getRenderProgress} from '../api/get-render-progress';@@ -55,7 +56,11 @@ export const renderCommand = async () => {const functionName = remotionLambdas[0].FunctionName as string;- const res = await renderVideoOnLambda({functionName, serveUrl});+ const res = await renderVideoOnLambda({+ functionName,+ serveUrl,+ inputProps: CliInternals.getInputProps(),+ });for (let i = 0; i < 3000; i++) {await sleep(1000);const status = await getRenderProgress({