Lower delay for loading sound

environments/review-front-fix-fhp6gl/deployments/7748
JuniorJPDJ 2021-06-24 18:08:12 +02:00 zatwierdzone przez Georg Krause
rodzic 13c3b22b02
commit 61d7c8bf14
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -743,14 +743,13 @@ export default {
}
this.nextTrackPreloaded = false
clearTimeout(this.playTimeout)
let self = this
if (this.currentSound) {
this.currentSound.pause()
}
this.$store.commit("player/isLoadingAudio", true)
this.playTimeout = setTimeout(async () => {
await self.loadSound(newValue, oldValue)
}, 500);
await this.loadSound(newValue, oldValue)
}, 100);
this.updateMetadata()
},
immediate: false