video-canvas

Display Videos In Canvas Element

Display Videos In Canvas Element

videoCanvas = require('video-canvas')
 
player = videoCanvas('totoro.mp4', 'body.foo').autoplay.volume(0.5).on('ended', function () {
  // end 
})
 
player.element()
// => <video> 
 
player.canvas()
// => <canvas> 

Multiple video formats for browser compatibility:

videoCanvas(['totoro.mp4', 'totoro.webm'], document.body)
$ npm install video-canvas

See media