title: TypeError: Cannot read property 'getSupportedConstraints' of undefined (when serve on host as IP address)
body: <p>I am facing a wired issue when i run my angularjs application on my localhost it is working fine.
  But when I host it on IP address it gives error </p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'getSupportedConstraints' of undefined </p>
  </blockquote>
  
  <p>This is my code</p>
  
  <pre><code>let mediaSourceSupport = !!navigator.mediaDevices.getSupportedConstraints()
      .mediaSource;
  </code></pre>
  
  <p>when serve on localhost navigator.mediaDevices object I get <a href="http://prntscr.com/qpf32s" rel="nofollow noreferrer">http://prntscr.com/qpf32s</a>
  but when host on IP address it gives undefind</p>