title: Live video streaming with phonegap
body: <p>I am trying to build a video chat application by using phonegap with HTML5 and JS.
  I tried some code with web RTC, but it works well only on desktop browser. When i built it from phonegap build,  application fails to open camera. I tried with following code to stream a video from device cam, but it's not working. Any help will be appreciated.</p>
  
  <pre><code>navigator.webkitGetUserMedia(
          {
            //audio: true,
            video: true
          },
  
          function (stream) {
            localStream = stream;
  
            localVideo.src = window.URL.createObjectURL(stream);
  
            if (successCb) {
              successCb(stream);
            }
          },
  
          function (err) {
            logError('failed to access local camera');
            logError(err.message);
          }
        );
  </code></pre>