调用摄像头出现 navigator.getUserMedia is not a function?
function startVideo() { // displaying the video from the user's webcam navigator.getUserMedia( { video: {} }, stream => video.srcObject = stream, err => console.error(err) ) }请问怎么解决?
调用摄像头出现 navigator.getUserMedia is not a function?
function startVideo() { // displaying the video from the user's webcam navigator.getUserMedia( { video: {} }, stream => video.srcObject = stream, err => console.error(err) ) }请问怎么解决?