Display Videos In Canvas Elements
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

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