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
https://webrtc.github.io/samples/src/content/getusermedia/canvas/

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.
https://www.dropbox.com/sh/rk08uktabd6soa6/AAB7vraS6b0uN6vwjfFGhxZla?dl=0

I will appreciate some help.
Thanks.

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