Skip to content

Instantly share code, notes, and snippets.

@jsreeram
Created August 21, 2012 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsreeram/3419413 to your computer and use it in GitHub Desktop.
Save jsreeram/3419413 to your computer and use it in GitHub Desktop.
Drawing a video to canvas
// 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