Skip to content

🎥 Make videos programmatically with React

increase video threads

Jonny Burger861af2196b37
diff --git a/packages/renderer/src/open-browser.ts b/packages/renderer/src/open-browser.ts
index 64eb212840..a77025c26b 100644
--- a/packages/renderer/src/open-browser.ts
+++ b/packages/renderer/src/open-browser.ts
@@ -69,6 +69,10 @@ export const openBrowser = async (
dumpio: options?.shouldDumpIo ?? false,
headless: false,
ignoreDefaultArgs: true,
+ defaultViewport: {
+ width: 1920,
+ height: 1080,
+ },
args: [
'--allow-pre-commit-input', // TODO(crbug.com/1320996): neither headful nor headless should rely on this flag.
'--disable-background-networking',
@@ -93,6 +97,7 @@ export const openBrowser = async (
'--force-color-profile=srgb',
'--metrics-recording-only',
'--no-first-run',
+ '--video-threads=16',
'--enable-automation',
'--password-store=basic',
'--use-mock-keychain',