This commit is contained in:
2019-09-08 01:35:31 +01:00
parent 286751b557
commit 454d32bdaa

View File

@ -0,0 +1,13 @@
var constraints = { audio: true, video: false }
navigator.mediaDevices.getUserMedia(constraints)
.then(function(stream) {
/* use the stream */
console.log("got stream!");
console.log(stream)
})
.catch(function(err) {
/* handle the error */
console.log(err)
});