Last active
October 7, 2017 20:10
-
-
Save bryanjenningz/f95fe45e1b76f71301c1324b9110c7c0 to your computer and use it in GitHub Desktop.
audio-recorder
This file contains hidden or 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(stream => { | |
const mediaRecorder = new MediaRecorder(stream); | |
mediaRecorder.start(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment