Last active
April 3, 2021 10:15
-
-
Save vamsee9/289fc68bdf3b40060d8a69cfc759a576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment