News for hackers. Stuff that matters.
Re:HTML5 webcam to canvas stream (Demo + annotated code) by program on Wednesday September 19, 2012 @04:51AM (#4542740)
I got nice quality on Chrome 21. Substitute the window.requestAnimationFrame directive with:

  window.requestAnimationFrame = (function() {
    return window.requestAnimationFrame || window.webkitRequestAnimationFrame ||
    window.mozRequestAnimationFrame || window.oRequestAnimationFrame ||
    window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60); };
  })();
and it will work in Opera 12 too.
Re:HTML5 webcam to canvas stream (Demo + annotated code) by cbrandolino_ on Wednesday September 19, 2012 @04:58AM (#4542755)
Wow, I was sure they implemented requestAnimationFrame already!

Anyway, I limited myself to trying out the various vendors' prefixes; this being mainly an experiment/preview I'd rather keep the code clean than support non-cutting-edge browsers.

I'll update the paragraph about the compatibility though; thanks for the heads up!