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);