
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
video-canvas
Advanced tools
Paint video on canvas. Extra light.
video-canvas will take care of painting a video on canvas for you. In the easiest of setups, you provide a video and you get a correctly-sized self-updating canvas ready to be used.
Features:
video.play() and video.pause().canvas element from your video (optional).npm install --save video-canvas
var videoCanvas = require('video-canvas');
import videoCanvas from 'video-canvas';
Simple usage:
const video = document.querySelector('video');
const canvas = videoCanvas(video); // returns the <canvas> element
document.body.appendChild(canvas)
video.play();
video.pause();
Provide your own canvas:
videoCanvas(video, {
canvas: document.querySelector('.your-own-canvas'),
});
By default, video-canvas will automatically match the canvas size to the video size, whenever that changes. If you want to prevent this behavior, pass updateSize: false
const canvas = videoCanvas(video, {
updateSize: false
});
If you want to customize the draw call, pass your drawing function as drawCall
const canvas = videoCanvas(video, {
drawCall: function (ctx, video) {
ctx.drawImage(video, 0, 0, 100, 100)
}
});
No dependencies.
get-media-size: get the real size of any media: images, videos, canvas and canvas' contextsiphone-inline-video: You don't need canvas to play video inline on the iPhoneMIT © Federico Brigante
FAQs
Paint video on canvas. Extra light.
We found that video-canvas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.