Click Start/Stop button to start or stop the video.
The videoInput is a <video> element used as CamShift input.
The canvasOutput is a <canvas> element used as CamShift output.
The code of <textarea> will be executed when video is started.
You can modify the code to investigate more.