fix drawImage

This commit is contained in:
Harvey Zack committed 2024-09-15 00:15:03 +08:00
1 parent 278119068c
commit 400ab2f9c4
3 files changed
+5 -9

No files matched your search

@@ -200,10 +200,8 @@ function artplayerProxyCanvas(callback) {
});
}
});
const draw = async ()=>{
const bitmap = await createImageBitmap(video);
ctx.drawImage(bitmap, 0, 0, canvas.width, canvas.height);
bitmap.close();
const draw = ()=>{
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
art.emit("artplayerProxyCanvas:draw", ctx);
};
const animation = async ()=>{