reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
14
src/Yavsc.Org/wwwroot/js/audiovideoinput.js
Normal file
14
src/Yavsc.Org/wwwroot/js/audiovideoinput.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//@ts.check
|
||||
|
||||
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…
Reference in a new issue