clear danmaku after seeking

This commit is contained in:
DIYgod
2017-09-24 06:38:10 +08:00
parent db5483ef12
commit 3d5ea2c68a
4 changed files with 4 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dplayer",
"version": "1.14.0",
"version": "1.14.1",
"description": "Wow, such a lovely HTML5 danmaku video player",
"main": "dist/DPlayer.min.js",
"style": "dist/DPlayer.min.css",
+1
View File
@@ -277,6 +277,7 @@ class Danmaku {
}
seek () {
this.clear();
for (let i = 0; i < this.dan.length; i++) {
if (this.dan[i].time >= this.options.time()) {
this.danIndex = i;