Matrym
Matrym

Reputation: 17053

How to create a canvas with image of video frame

I'm hoping to use canvas' drawimage to create what is effectively a screenshot of the video tag (currently playing). I know this is possible, but I'm not clear on how.

Source of inspiration: http://www.craftymind.com/2010/04/20/blowing-up-html5-video-and-mapping-it-into-3d-space/

Upvotes: 0

Views: 183

Answers (1)

Simon Sarris
Simon Sarris

Reputation: 63812

Literally you just do drawImage(videoTagReference, 0, 0)

That will draw the <video> onto the canvas at the current frame.

Upvotes: 1

Related Questions