From da16e5a97d4d0bc8f33bb04e228010fb70c29a4e Mon Sep 17 00:00:00 2001
From: iotcat
Date: Fri, 17 Jan 2020 11:48:50 +0000
Subject: [PATCH] add css
---
index.html | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 57 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index e7b12af..9c8ce69 100644
--- a/index.html
+++ b/index.html
@@ -90,7 +90,50 @@
Video_PlayFrom |
|
-
+
+ Player_Width |
+ |
+
+
+ Player_Height |
+ |
+
+
+ Player_CurrentTime |
+ |
+
+
+ Player_Duration |
+ |
+
+
+ Player_Volume |
+ |
+
+
+ Player_Paused |
+ |
+
+
+ Danmaku_Num |
+ |
+
+
+ Danmaku_Opacity |
+ |
+
+
+ Danmaku_NumBottom |
+ |
+
+
+ Danmaku_NumRight |
+ |
+
+
+ Danmaku_NumTop |
+ |
+
@@ -253,6 +296,19 @@
}
}, t);
};
+ /* print player and danmaku info */
+ setInterval(function(){
+ $('#danmaku_numRight').html(Object.keys(dp.danmaku.danTunnel.right).length);
+ $('#danmaku_numBottom').html(Object.keys(dp.danmaku.danTunnel.bottom).length);
+ $('#danmaku_numTop').html(Object.keys(dp.danmaku.danTunnel.top).length);
+ $('#danmaku_opacity').html(dp.danmaku._opacity);
+ $('#player_width').html(dp.video.videoWidth);
+ $('#player_height').html(dp.video.videoHeight);
+ $('#player_volume').html(dp.video.volume);
+ $('#player_paused').html(dp.video.paused);
+ $('#player_currentTime').html(dp.video.currentTime);
+ $('#player_duration').html(dp.video.duration);
+ }, 1000);