mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
feat: add picture-in-picture support and enhance event emission in artplayerProxyCanvas
This commit is contained in:
1 parent
faa621c5be
commit
92654e911f
4 files changed
+4
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user