//object进行视频电脑端的视频录制
//js代码使用canvas进行截图
var canvas = document.createElement("canvas");
var canvasCtx = canvas.getContext("2d");
var video = document.getElementById("webcam1");
canvasCtx.drawImage(video,0,0,500,500);
var dataUrl = canvas.toDataURL();
console.log(dataUrl);
只能截图video标签的,请问如何截取object播放的图片