[AppleScript] 纯文本查看 复制代码 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();
代码在PC端可以正常播放,在移动端无法播放。。
|