From 6a10de74339675f200f2e02007fbdd8748ba8d41 Mon Sep 17 00:00:00 2001 From: wzm Date: Sun, 24 Mar 2024 18:28:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86danmaku=5Fload?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BA=8B=E4=BB=B6=E4=B8=8Eevents=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E4=BA=8B=E4=BB=B6=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/events.js b/src/js/events.js index a147f7983..5761f06fd 100644 --- a/src/js/events.js +++ b/src/js/events.js @@ -34,7 +34,8 @@ class Events { 'danmaku_show', 'danmaku_hide', 'danmaku_clear', - 'danmaku_loaded', + 'danmaku_load_start', + 'danmaku_load_end', 'danmaku_send', 'danmaku_opacity', 'contextmenu_show', From 97fe9c180811764be6b5406c69ea4184cbe5d5cc Mon Sep 17 00:00:00 2001 From: wzm Date: Sun, 24 Mar 2024 18:29:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E5=A4=84=E7=90=86danmaku=5Fload?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BA=8B=E4=BB=B6=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?demo=E5=92=8C=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demo.js | 2 +- docs/guide.md | 3 ++- docs/zh/guide.md | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/demo/demo.js b/demo/demo.js index cdd2dc9ac..1ea2321e7 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -145,7 +145,7 @@ function initPlayers() { 'screenshot', 'thumbnails_show', 'thumbnails_hide', 'danmaku_show', 'danmaku_hide', 'danmaku_clear', - 'danmaku_loaded', 'danmaku_send', 'danmaku_opacity', + 'danmaku_load_start', 'danmaku_load_end', 'danmaku_send', 'danmaku_opacity', 'contextmenu_show', 'contextmenu_hide', 'notice_show', 'notice_hide', 'quality_start', 'quality_end', diff --git a/docs/guide.md b/docs/guide.md index 159cef296..93b493285 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -349,7 +349,8 @@ Player events - danmaku_show - danmaku_hide - danmaku_clear -- danmaku_loaded +- danmaku_load_start +- danmaku_load_end - danmaku_send - danmaku_opacity - contextmenu_show diff --git a/docs/zh/guide.md b/docs/zh/guide.md index 113ca6f73..511f758b1 100644 --- a/docs/zh/guide.md +++ b/docs/zh/guide.md @@ -335,7 +335,8 @@ dp.on('ended', function () { - danmaku_show - danmaku_hide - danmaku_clear -- danmaku_loaded +- danmaku_load_start +- danmaku_load_end - danmaku_send - danmaku_opacity - contextmenu_show