diff --git a/src/Yavsc/wwwroot/js/audiovideoinput.js b/src/Yavsc/wwwroot/js/audiovideoinput.js new file mode 100644 index 00000000..7013835e --- /dev/null +++ b/src/Yavsc/wwwroot/js/audiovideoinput.js @@ -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) + }); \ No newline at end of file