Skip to content

🎥 Make videos programmatically with React

fixes

Jonny Burger1916542c8f07
diff --git a/packages/lambda/src/functions/helpers/get-browser-instance.ts b/packages/lambda/src/functions/helpers/get-browser-instance.ts
index 1e0cb38570..a542be435a 100644
--- a/packages/lambda/src/functions/helpers/get-browser-instance.ts
+++ b/packages/lambda/src/functions/helpers/get-browser-instance.ts
@@ -42,7 +42,7 @@ export const getBrowserInstance = async (): ReturnType<
_browserInstance = await pRetry(
() =>
RenderInternals.openBrowser('chrome', {
- customExecutable: execPath,
+ browserExecutable: execPath,
}),
{
retries: 3,
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 1217ab4d5a..95d71e1c59 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -177,7 +177,7 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
siteId: getServeUrlHash(params.serveUrl),
codec: params.codec,
usesOptimizationProfile: didUseOptimization,
- type: 'still',
+ type: 'video',
imageFormat: params.imageFormat,
};
diff --git a/packages/renderer/src/open-browser.ts b/packages/renderer/src/open-browser.ts
index 31f8377fc7..a703a97605 100644
--- a/packages/renderer/src/open-browser.ts
+++ b/packages/renderer/src/open-browser.ts
@@ -8,7 +8,6 @@ import {
export const openBrowser = async (
browser: Browser,
options?: {
- customExecutable?: string | null;
shouldDumpIo?: boolean;
browserExecutable?: string | null;
}
diff --git a/packages/renderer/src/render.ts b/packages/renderer/src/render.ts
index dd12b016c6..9127a94719 100644
--- a/packages/renderer/src/render.ts
+++ b/packages/renderer/src/render.ts
@@ -8,7 +8,6 @@ import {
Internals,
VideoConfig,
} from 'remotion';
-import {DEFAULT_BROWSER} from 'remotion/src/config/browser';
import {getActualConcurrency} from './get-concurrency';
import {getFrameCount} from './get-frame-range';
import {getFrameToRender} from './get-frame-to-render';
@@ -91,7 +90,7 @@ export const renderFrames = async ({
const browserInstance =
puppeteerInstance ??
- (await openBrowser(browser ?? DEFAULT_BROWSER, {
+ (await openBrowser(browser ?? Internals.DEFAULT_BROWSER, {
shouldDumpIo: dumpBrowserLogs,
browserExecutable,
}));