mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
bugfix
This commit is contained in:
1 parent
ed03008bc9
commit
8754fea23d
2 files changed
+7
-1
No files matched your search
@@ -462,17 +462,23 @@
|
||||
|
||||
if (typeof this.option.danmuku === 'function') {
|
||||
this.option.danmuku().then(function (danmus) {
|
||||
_this.queue = [];
|
||||
_this.$danmuku.innerText = '';
|
||||
danmus.forEach(_this.emit.bind(_this));
|
||||
|
||||
_this.art.emit('artplayerPluginDanmuku:loaded');
|
||||
});
|
||||
} else if (typeof this.option.danmuku === 'string') {
|
||||
bilibiliDanmuParseFromUrl(this.option.danmuku).then(function (danmus) {
|
||||
_this.queue = [];
|
||||
_this.$danmuku.innerText = '';
|
||||
danmus.forEach(_this.emit.bind(_this));
|
||||
|
||||
_this.art.emit('artplayerPluginDanmuku:loaded');
|
||||
});
|
||||
} else {
|
||||
this.queue = [];
|
||||
this.$danmuku.innerText = '';
|
||||
this.option.danmuku.forEach(this.emit.bind(this));
|
||||
this.art.emit('artplayerPluginDanmuku:loaded');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user