mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
artplayer-plugin-danmuku@4.3.17
This commit is contained in:
1 parent
7bcc296fc2
commit
5e05f9e4c2
6 files changed
+11
-11
No files matched your search
@@ -133,7 +133,7 @@ export default class Danmuku {
|
||||
return this.queue.filter((danmu) => {
|
||||
return (
|
||||
danmu.$state === 'ready' ||
|
||||
(danmu.$state === 'wait' && currentTime + 0.1 >= danmu.time && danmu.time >= currentTime - 0.1)
|
||||
(danmu.$state === 'wait' && currentTime + 0.2 >= danmu.time && danmu.time >= currentTime - 0.2)
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -410,7 +410,7 @@ export default class Danmuku {
|
||||
if (danmu.time) {
|
||||
danmu.time = this.utils.clamp(danmu.time, 0, Infinity);
|
||||
} else {
|
||||
danmu.time = this.art.currentTime + 0.5;
|
||||
danmu.time = this.art.currentTime + 1;
|
||||
}
|
||||
|
||||
this.queue.push({
|
||||
|
||||
Reference in new issue
Block a user