title: streaming video with peerjs webrtc from android webview is too slow
body: <p>I have an android application that sends the camera stream through a webview through peerjs (webrtc) the web application on the browser receives the video and streams it.</p>
  
  <p>Things are working but the video on the web is too slow and the image freezes for some time before getting the second image...</p>
  
  <p>Is there a way to make the resolution lower ? or buffer the video on the web application ?  or can it be something wrong with my implementation ?</p>
  
  <p><strong>Android Webview code:</strong></p>
  
  <pre><code>        initVideo = function(videoSourceValue) {
  
          var video = document.querySelector('video');
          navigator.getUserMedia({video:  {optional: [{
                                                      sourceId: videoSourceValue
                                                       }]
                                            }
                                  },function(stream) {
          video.src = window.URL.createObjectURL(stream);
          $('#peerId').text("calling : " + SERVER_PEER_ID);
           var mediaConnection = peer.call(SERVER_PEER_ID, stream);
            mediaConnection.on('stream', function(remoteStream) {
              // Show stream in some video/canvas element.
            });
          },function(e){
                  console.log('failed',e);
          });
      }
  </code></pre>
  
  <p><strong>Web part:</strong></p>
  
  <pre><code>   function getVideoStream() {
      PEER.on('call', function(call) {
          var mediaConnection = navigator.getUserMedia({video: true}, function(stream) {
              call.answer(stream); // Answer the call with an A/V stream.
              call.on('stream', onReceiveStream);
          }, function(err) {
              console.log('Failed to get local stream' ,err);
          });
      });
  }
  
  
      function onReceiveStream(stream){
          console.log('received stream');
          $('video').prop('src',window.URL.createObjectURL(stream));
  
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p><strong>Update 1</strong></p>
  
  <p>I tried to add <code>{reliable : true}</code>, still having the same issue. </p>
  
  <p>I'm also sending location data to the server, and it seems that the video streams and location data are sent together periodically (the chart on the web showing speed and the video move at the same time) but the frame rate is too slow.</p>