perf: ⚡ reduce time on conflict loop detection
This commit is contained in:
parent
4f412c23c0
commit
5b0b1dcc81
@ -33,7 +33,7 @@ export const usePlayer = defineStore('player', {
|
|||||||
audio.ontimeupdate = () => (this.currentTime = audio.currentTime)
|
audio.ontimeupdate = () => (this.currentTime = audio.currentTime)
|
||||||
audio.onvolumechange = () => (this.volume = audio.volume)
|
audio.onvolumechange = () => (this.volume = audio.volume)
|
||||||
|
|
||||||
setInterval(this.loop, 4000)
|
setInterval(this.loop, 1000)
|
||||||
},
|
},
|
||||||
loop() {
|
loop() {
|
||||||
this.playCount = 0
|
this.playCount = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user