fix danmaku can not be hideen, close #41
This commit is contained in:
parent
e97090fcc0
commit
e1a854285e
|
|
@ -444,7 +444,7 @@ class DPlayer {
|
|||
this.element.getElementsByClassName('dplayer-ptime')[0].innerHTML = secondToTime(this.video.currentTime);
|
||||
this.trigger('playing');
|
||||
}, 100);
|
||||
if (this.option.danmaku) {
|
||||
if (this.option.danmaku && showdan) {
|
||||
danmakuTime = setInterval(() => {
|
||||
let item = this.dan[this.danIndex];
|
||||
while (item && this.video.currentTime >= parseFloat(item.time)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue