Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clipisode/puppeteer-recorder

Record animations using puppeteer. Based on electron-recorder.
https://github.com/clipisode/puppeteer-recorder

chrome ffmpeg nodejs puppeteer video

Last synced: 13 days ago
JSON representation

Record animations using puppeteer. Based on electron-recorder.

Awesome Lists containing this project

README

        

# puppeteer-recorder
Record frame-by-frame animations using puppeteer. Based on electron-recorder.

# Usage
```javascript
const { record } = require('puppeteer-recorder');

await record({
browser: null, // Optional: a puppeteer Browser instance,
page: null, // Optional: a puppeteer Page instance,
output: 'output.webm',
fps: 60,
frames: 60 * 5, // 5 seconds at 60 fps
prepare: function (browser, page) { /* executed before first capture */ },
render: function (browser, page, frame) { /* executed before each capture */ }
});
```