clear danmaku after seeking
This commit is contained in:
parent
db5483ef12
commit
3d5ea2c68a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue