feat: add picture-in-picture support and enhance event emission in artplayerProxyCanvas

This commit is contained in:
Harvey Zack committed 2024-09-17 10:30:52 +08:00
1 parent faa621c5be
commit 92654e911f
4 files changed
+4 -3

No files matched your search

@@ -191,7 +191,7 @@ function artplayerProxyCanvas() {
ctx.drawImage(bitmap, 0, 0, canvas.width, canvas.height);
bitmap.close();
} else ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
art.emit("artplayerProxyCanvas:draw", ctx);
art.emit("artplayerProxyCanvas:draw", ctx, video);
} catch (error) {
art.emit("artplayerProxyCanvas:error", error);
}