On page 397, there is the processFrame function. I find that it fails when trying to retrieve the frame.data.length.
Also, note other errors:
"buffer.drawImage(video... , bufferCanvas.width, displayCanvas.height);"
This should use "bufferCanvas.height", as it is on the previous page.
"for (var i=0; i<length; i++)"
This should use "i+=4", since each loop goes through 4 pixels.
I looked around online and can't figure out why that length is not being calculated correctly.
Oh, also, loop doesn't work on the downloaded version either. I thought it was because of how we were not handling it in the endedHandler, but it wasn't.
This post has been edited by Seth Close: 10 February 2012 - 12:37 PM












