title: problems setting different resolutions with WebRTC
body: <p>I'm trying to use WebRTC's getUserMedia functionality to take snapshots in video streaming from the user's camera. The problem is that I want to use a resolution of 640 X 480 working in Firefox 19.02, Opera 12.14 and Chrome 25.0.1364.172 versions respectively, but I'm not able to use this resolution in Firefox and Opera. When I try that, the image appears cut from the down side with 640 X 360 resolution. Anyway, if I try to change the resolution in Chrome, it doesn't work nor with higher resolution than 640 X 480. Does anybody have the same problem? I want to know if it's a bug or something, but I haven't seen any information about that. This is my code, I have proved in many ways such putting contraints with minimum width and height but it doesn't work:</p>
  
  <p>the script:</p>
  
  <pre><code>navigator.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia || navigator.webkitGetUserMedia || navigator.msGetUserMedia;
  if(navigator.getUserMedia){
      navigator.getUserMedia({
        video: true
        }, onSuccess, onError);
  }
  else{
      alert('An error has occurred starting the webcam stream, please revise the instructions to fix the problem');
  }
  function onSuccess(stream) {
      var video = document.getElementById('webcam');
  
      if(navigator.webkitGetUserMedia || navigator.mozGetUserMedia){
          video.src = window.URL.createObjectURL(stream);
      }
      else if(navigator.msGetUserMedia){
          //future implementation over internet explorer
      }
      else{
          video.src = stream;
      }
      video.play();
  }
  function onError() {
      alert('There has been a problem retrieving the streams - did you allow access?');
  }
  </code></pre>
  
  <p>the css (it's only for proving, it doesn't put everything in the correct place):</p>
  
  <pre><code>body {
      margin: 0px 0px;
      padding: 0px 0px;
  }
  #videoFrame {
      margin: 0px auto;
      width: 640px;
      height: 480px;
      border: 10px #333 solid;
  }
  #webcam {
      videoWidth: 640px;
      videoHeight: 480px;
  }
  #captureFrame {
      margin: 0px auto;
      width: 640px;
      height: 480px;
  }
  #webcamContent {
      width: 1280px;
      height: 480px;
  }
  </code></pre>
  
  <p>and jsp file:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Testing WebRTC&lt;/title&gt;`
          &lt;link href="css/styles.css" rel="stylesheet" type="text/css" /&gt;`
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="webcamContent"&gt;
              &lt;div id="videoFrame"&gt;
                  &lt;video id="webcam"&gt;&lt;/video&gt;
              &lt;/div&gt;
              &lt;div id="captureFrame"&gt;
                  &lt;canvas id="bioCapture"&gt;&lt;/canvas&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;script src="js/webRTC.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>