From 61d7c8bf14df76285bad7629959650c41bc695b9 Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Thu, 24 Jun 2021 18:08:12 +0200 Subject: [PATCH] Lower delay for loading sound --- front/src/components/audio/Player.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index d05571aad..0890cacb4 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -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