archie.herbias -2 Newbie Poster

I want to create an app using phonegap that will access the camera but the output of the camera will be streamed on a div or a canvas.

I have read this one https://github.com/mbppower/CordovaCameraPreview but I don't know how to really implement this one because as I used this one it always throw an error like an error occured while connecting to camera: 0

I want a great example and a working example. I am using phonegap 5.1.1