David Davis of Ext doesn't just have a cool name. He does cool stuff :) His latest post explains a showcase of melding HTML5 video and canvas support as he creates a live video tooltip.

The example uses Ext JS web desktop and the code created delivers a special Panel that is able to deliver video, and then the simple act of grabbing a video frame and scaling it down for the tooltip:

JAVASCRIPT:
  1.  
  2. win.ctx.drawImage(win.videoEl, 0, 0, win.tip.width, win.tip.height);
  3.  

Very nicely done.


Related News :