[转] HTML5利用WebRTC的getUserMedia获取摄像头信息模拟拍照及视频(完整示例)
HTML5GetUserMediaDemovarvideo=document.querySelector('video');varaudio,audioType;varcanvas1=document.getElementById('canvas1');varcontext1=canvas1.getContext('2d');varcanvas2=document.getElementById('