Skip to content

recordDurationLimit not work #85

Open
@xiongzhp

Description

@xiongzhp
  • 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions