I had searched a lot of DEMO and examples about getUserMedia , but most are just camera capturing, not microphone.
So I downloaded some examples and tried on my own comp
It's working, you just need to add toString parameter after audio : true
toString
audio : true
Check this article - link