Skip to content

Commit

Permalink
Merge pull request #8 from IvanDhalluin/puppeteer-args
Browse files Browse the repository at this point in the history
Allow passing more args to Puppeteer
  • Loading branch information
mifi committed Jan 29, 2022
2 parents d4871ef + 7b123c0 commit 49d0d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const Editor = require('@reactive-video/builder');
output: 'my-video.mp4',
concurrency: 3,
// headless: false,
// extraPuppeteerArgs: ['--no-sandbox', '--disable-setuid-sandbox']
});

// Or start a live preview:
Expand Down
2 changes: 2 additions & 0 deletions packages/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function Editor({
jpegQuality = 90,
captureMethod = 'screencast',
sleepTimeBeforeCapture = 0, // See https://github.com/mifi/reactive-video/issues/4
extraPuppeteerArgs = [],

frameRenderTimeout = 30000,

Expand Down Expand Up @@ -165,6 +166,7 @@ function Editor({
'--force-device-scale-factor=1',
// '--start-maximized',
// `--window-size=${width},${height}`,
...extraPuppeteerArgs
],
headless,
// dumpio: true,
Expand Down

0 comments on commit 49d0d49

Please sign in to comment.