mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
fix drawImage
This commit is contained in:
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 ()=>{
|
||||
|
||||
Reference in new issue
Block a user