Created
August 21, 2012 21:10
-
-
Save jsreeram/3419413 to your computer and use it in GitHub Desktop.
Drawing a video to canvas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Draws a video element onto a 2D context | |
// output_canvas: A canvas element | |
// output_context: A 2D context on output_canvas | |
// video: A video element to draw | |
output_context.drawImage(video, 0, 0, output_canvas.width, output_canvas.height); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment