Skip to content

Instantly share code, notes, and snippets.

@imaustink
Last active August 7, 2018 07:14
Show Gist options
  • Save imaustink/28294e77048aaab9fae3388d8f31462d to your computer and use it in GitHub Desktop.
Save imaustink/28294e77048aaab9fae3388d8f31462d to your computer and use it in GitHub Desktop.
A demo of the getUserMedia API
navigator.mediaDevices.getUserMedia({ video: true, audio: true })
.then(stream => {
console.log(stream)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment