title: Code to detect webcam does not work on Chrome when running on server
body: <p>I am using the Javascript code below to detect a webcam:</p>
  
  <pre><code>navigator.getMedia = ( navigator.getUserMedia 
      || navigator.webkitGetUserMedia 
      || navigator.mozGetUserMedia 
      || navigator.msGetUserMedia);
  </code></pre>
  
  <p>It works with Chrome when the application is running on my computer. But when I am running the application on the server, it works fine with Firefox but not with Chrome. I am getting the error message "No Camera available" like if it is trying to detect the webcam on the server side (the server has no webcan) and not on the client side, my computer.
  What can be the problem?</p>