clear danmaku after seeking

This commit is contained in:
DIYgod 2017-09-24 06:38:10 +08:00
parent db5483ef12
commit 3d5ea2c68a
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
4 changed files with 4 additions and 3 deletions

2
dist/DPlayer.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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",

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;