Dynamic Content Injection with HTML5 Video

  • Posted on April 21st, 2009

Paul Rouget has been pushing Canvas video in new and exciting ways with his dynamic content injection demo. Using the drawImage method provided by the canvas element, he has injected the content of a DOM element in to the canvas. This injection works with three kinds of elements: images, canvas and video.

Spinning around

Paul explains how the demo works:

First, the content of the video is injected in the main canvas. That’s why the canvas element looks like a video element. Second, the position of the 2 brighter areas of the canvas are computed (you have access to all pixels values). Third, the required transformation is computed (rotation, scale, translation). Fourth, the content of the selected pattern is injected in the main canvas following the transformation.

Currently, the demo only works on Firefox 3.1 beta or higher.

Check out the dynamic content injection demo, or read more about the demo

Info

Type:
Demos
Tags:
Posted on:
April 21st, 2009
Posted by:
Andi Smith
Views:
1045

Rating

4.25

Your Rating:
1 Star2 Stars3 Stars4 Stars5 Stars

Works on

BETA Please let us know if you find Dynamic Content Injection with HTML5 Video works in other browsers by leaving a comment below.

Add comment

(required)
(required)
(will not be published)
(required)