var canvas = document.querySelector('canvas#canvas');
var ctx = canvas.getContext("2d");
var playVideo = document.querySelector('video#play');
function canvasRender() {
stop = window.requestAnimationFrame(canvasRender)
ctx.clearRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(playVideo, 0, 0, canvas.width, canvas.height)
}
canvasRender();
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |