renamed
This commit is contained in:
parent
7946d37dd1
commit
e1923c5329
1 changed files with 13 additions and 0 deletions
13
src/Yavsc/wwwroot/js/audiovideoinput.js
Normal file
13
src/Yavsc/wwwroot/js/audiovideoinput.js
Normal 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)
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue