canvas-video
draws video in canvas element using requestAnimationFrame
Usage
npm install canvas-video --save
const canvas = video: document canvas: document canvascanvas
options
fps
methods
play
: start drawing video in canvas using requestAnimationFramepause
: cancelAnimationFrameresize
: apply css styles (width, height) of<video>
element to<canvas>
License
MIT, see LICENSE.md for details.