Chrome microphone permissions?

I am trying to use the microphone in chrome but it is not asking for the permission.
if you see the below image, you can find that the microphone permission is ask but still that is not working. My website is all about recording the audio and performing the things.

@phani what leads you to think this is a JavaScript issue? It looks like you’re trying this on your home network (192.168.x.x), so could you explain what your setup is and we can try and direct you accordingly.

As Chris says, it’s hard to know what the problem is without seeing the code you are running.

Try this script. What happens when you run this?

<!doctype html>
<html>
  <head>
    <meta charset='utf-8'>
    <title>Mic test</title>
  </head>

  <body>
    <script>
      navigator.mediaDevices.getUserMedia({ audio: true })
      .then(function(stream) {
        console.log('You let me use your mic!')
      })
      .catch(function(err) {
        console.log('No mic for you!')
      });
    </script>
  </body>
</html>
1 Like

I got answer guys.
i am running the application on the ip but according the chrome polices it has to run on localhost.
Thanks for your time.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.