I use it on my phone (android). The issue, is, sorry been awhile, is the source. Your phone generally has 2 camera's. You have to select the correct one.
Um, I think it is called request camera, then select source 0 as front camera, well that is what I did.
I made a small handheld mirror for my sister in-law so she could put on makeup.
haha nice Thanks for responding. Yeah I got the whole process but I was wondering why there are so many triggers. Anyway I've since got it working on my phone to the point where I evaluate the front/back cameras and take a photo so I guess that's good! Although having to get the user to 'Allow' the camera is annoying.
edit: what's happening is that it triggers 4 times, each time retrieving 0 cameras, then the 5th time it retrieves 1 then the 6th time it retrieves both cameras sucessfully. So somehow it seems to need lots of attempts..