开发者

How to create a canvas with image of video frame

开发者 https://www.devze.com 2023-03-03 16:03 出处:网络
I\'m hoping to use canvas\' drawimage to create what is effectively开发者_如何学Python a screenshot of the video tag (currently playing). I know this is possible, but I\'m not clear on how.

I'm hoping to use canvas' drawimage to create what is effectively开发者_如何学Python 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/


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消