video-canvas

Display Videos In Canvas Element

npm install video-canvas
2 downloads in the last week
8 downloads in the last month

video-canvas

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)

Install

$ npm install video-canvas

API Reference

See media

npm loves you