原文链接: 修复: WebGL: INVALID_VALUE: tex(Sub)Image2D: video visible size is empty
上一篇: 从npm上撤销/删除自己发布的包
下一篇: React Typescript 报错 Cannot assign to 'current' because it is a read-only property.
设置一些属性, 然后关闭自动播放, 但是需要手动load, 然后在用户点击后调用play播放视频
video.autoplay = false;
video.loop = true;
video.preload = "auto";
video.autoload = true;
video.load();
startBtn.addEventListener("click", () => {
video.play();
});