Commit 84960880 by Иван Кубота

fix

parent 2d0b3522
......@@ -306,10 +306,13 @@ var videoEl = inputVideo;
};
var f0 = async function() {
const stream = await navigator.mediaDevices.getUserMedia({ video: {} })
try{
const stream = await navigator.mediaDevices.getUserMedia( { video: {} } )
const videoEl = inputVideo
videoEl.srcObject = stream
}catch(e){
console.error('no media device')
}
f()
}
f0();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment