Record animations using puppeteer. Based on electron-recorder.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Aug 17, 2017
LICENSE Initial commit Aug 17, 2017
README.md Adding small clarification to README. May 16, 2018
index.js Add frame logging. Dec 14, 2017
package.json

README.md

puppeteer-recorder

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

Usage

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 */ }
});