mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41: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
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user