chrome浏览器下:
navigator.getUserMedia({video: true, audio: true}, function(stream) {
video.src = window.URL.createObjectURL(stream);localMediaStream=stream;
}, function(e) {
console.log('Fine, you get a movie instead of your beautiful face ;)');
}
);
localMediaStream.stop();video.src="";
可以关闭网页标题左上角的闪烁的小红点,但是关闭不了浏览器网址输入栏位的摄像头图标。。。
继续研究中。。。。