CanvasRecorder(canvas, options)

new CanvasRecorder(canvas, options)

Records video from a Canvas to a file.

Parameters:
Name Type Description
canvas HTMLCanvasElement

Canvas to record

options Object

MediaRecorder options

Source:
CanvasRecorder.js, line 6
Example
const recorder = new CanvasRecorder(canvas);

Methods

getPNG()

Retrieves the current frame as a PNG and downloads the image.

Source:
CanvasRecorder.js, line 52

start()

Starts the video recording.

Source:
CanvasRecorder.js, line 27

stop()

Stops the video recording and downloads the video.

Source:
CanvasRecorder.js, line 45

MIT

Documentation generated by JSDoc 4.0.4 using Docolatte theme on