Skip to content

Instantly share code, notes, and snippets.

@bryanjenningz
Last active October 7, 2017 20:10
Show Gist options
  • Save bryanjenningz/f95fe45e1b76f71301c1324b9110c7c0 to your computer and use it in GitHub Desktop.
Save bryanjenningz/f95fe45e1b76f71301c1324b9110c7c0 to your computer and use it in GitHub Desktop.
audio-recorder
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