Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we get the screenshot of the video in html5 using canvas

Tags:

javascript

Hello is it possible to capture screenshot of the video being played using html 5 canvas.

like image 226
Yalamber Avatar asked Feb 22 '11 09:02

Yalamber


People also ask

How do I capture a canvas image?

We can capture the canvas by using the toDataURL method that comes with the canvas element object. Then we can write the following JavaScript to draw some content and capture it as an image file: const canvas = document.

Can you save a HTML canvas image?

Saving HTML canvas as an image is pretty easy, it can be done by just right-clicking on the canvas and save it as an image.


1 Answers

Looks like it is possible here: http://html5doctor.com/video-canvas-magic/

like image 193
Luke Stanley Avatar answered Nov 06 '22 15:11

Luke Stanley