Capture video, take a snapshot and place it in an HTML Canvas

I am trying to capture my camera and take a snapshot and then place it in a HTML canvas

I found a working example that uses some java script

I tried to convert this example in a xojo web app using WebControlWrapper

My best aproach is in the following dropbox link, but it does not works.

I will appreciate some help.

Graffitisuite has that component. You may ask Anthony Cyphers for it.