mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
update danmuku.js
This commit is contained in:
1 parent
1ba6898705
commit
c568076b6b
15 files changed
+197
-192
No files matched your search
@@ -461,9 +461,15 @@ export default class Danmuku {
|
||||
danmu.time = this.art.currentTime + 0.5;
|
||||
}
|
||||
|
||||
if (danmu.mode === undefined) {
|
||||
danmu.mode = this.option.mode;
|
||||
}
|
||||
|
||||
if (danmu.color === undefined) {
|
||||
danmu.color = this.option.color;
|
||||
}
|
||||
|
||||
this.queue.push({
|
||||
mode: this.option.mode,
|
||||
color: this.option.color,
|
||||
...danmu,
|
||||
$state: 'wait',
|
||||
$ref: null,
|
||||
|
||||
Reference in new issue
Block a user