getUserMedia() shim for PhoneGap/Cordova?
camera, cordova, stream
Solution
There's a plugin for capturing the camera stream, It uses `AVCaptureVideoDataOutput` to create a capture session. Each frame is base64 encoded and passed to the Cordova UIWebView. Its experimental and is slower than any native approach.
Problem
I have created a web app with Cordova and I need to show a live camera stream in my background. It seems that the Camera/Videos APIs from Cordova just open the native Camera/Video apps instead of returning live camera data. What I really need is something like `getUserMedia()` which is only available on Opera and Chrome (June 2012). Is there a shim to use `getUserMedia()` within Cordova or any Plugins which behave similarly?