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

+1 -1
View File
@@ -66,7 +66,7 @@ export default function artplayerProxyCanvas() {
} 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);
}