Open
Description
-
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project -
Summary
const puppeteer = require('puppeteer');
const { PuppeteerScreenRecorder } = require('puppeteer-screen-recorder');
const Config = {
followNewTab: true,
fps: 25,
videoFrame: {
width: 640,
height: 480,
},
videoCrf: 18,
videoCodec: 'libx264',
// videoPreset: 'ultrafast',
videoBitrate: 1000,
autopad: {
color: 'black' | '#35A5FF',
},
aspectRatio: '4:3',
recordDurationLimit: 10,
};
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
const recorder = new PuppeteerScreenRecorder(page, Config);
await recorder.start('./simple8.mp4'); // supports extension - mp4, avi, webm and mov
await page.goto('http://localhost:3000/html/test.html');
await recorder.stop();
await browser.close();
})();
recordDurationLimit does not work
- Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Metadata
Metadata
Assignees
Labels
No labels