From 454d32bdaaa35796d0161a5337c7c04a94f9f2ad Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 8 Sep 2019 01:35:31 +0100 Subject: [PATCH] renamed --- src/Yavsc/wwwroot/js/audiovideoinput.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Yavsc/wwwroot/js/audiovideoinput.js 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