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