perf: reduce time on conflict loop detection

This commit is contained in:
Michel Roux 2024-10-24 00:35:52 +02:00
parent 4f412c23c0
commit 5b0b1dcc81

View File

@ -33,7 +33,7 @@ export const usePlayer = defineStore('player', {
audio.ontimeupdate = () => (this.currentTime = audio.currentTime)
audio.onvolumechange = () => (this.volume = audio.volume)
setInterval(this.loop, 4000)
setInterval(this.loop, 1000)
},
loop() {
this.playCount = 0