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

+2 -4
View File
@@ -56,10 +56,8 @@ export default 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);
};