H5调用本地摄像头



 var video = document.getElementById("vvv");
  navigator.getUserMedia({video:true}, function (stream) {
    video.src = window.webkitURL.createObjectURL(stream);
  }, function (error) { alert(error); });
  setInterval(function () {

  },16)

你可能感兴趣的:(H5调用本地摄像头)