title: GetUserMedia - facingmode
body: <p>I am currently using an Android tablet and GetUserMedia to take pictures in my program.</p>
  
  <p>Apparently, the default camera used by GetUserMedia is the front camera. How do I use the rear camera as a default? </p>
  
  <p>Here's my code for GetUserMedia:</p>
  
  <pre><code>        navigator.getUserMedia({
              "audio": false,
              "video": {
                  mandatory: {
                      minWidth: this.params.dest_width,
                      minHeight: this.params.dest_height,
                      //facingMode: "environment",
                  },
              }
          }, 
          function(stream) {
              // got access, attach stream to video
              video.src = window.URL.createObjectURL( stream ) || stream;
              Webcam.stream = stream;
              Webcam.loaded = true;
              Webcam.live = true;
              Webcam.dispatch('load');
              Webcam.dispatch('live');
              Webcam.flip();
          },
          function(err) {
              return self.dispatch('error', "Could not access webcam.");
          });
  </code></pre>
  
  <p>I inserted facingMode in the "mandatory" part but didn't work.</p>
  
  <p>Please help.</p>