From b8faeef18921f830d0b8ba920df78be5edeb849e Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sat, 19 Oct 2024 15:12:53 +0200 Subject: [PATCH] actually fix it now --- .../src/components/playerView.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/MusicPlayerV2-GUI/src/components/playerView.vue b/MusicPlayerV2-GUI/src/components/playerView.vue index 8bcbaeb..40366f9 100644 --- a/MusicPlayerV2-GUI/src/components/playerView.vue +++ b/MusicPlayerV2-GUI/src/components/playerView.vue @@ -434,14 +434,16 @@ if ( pos.value > 0 && !hasStarted ) { if ( player.getPlaying() ) { - getDetails(); - playingSong = player.getPlayingSong(); - pos.value = player.getPlaybackPos(); - prepNiceDurationTime( playingSong ); - notificationHandler.emit( 'playlist-index-update', currentlyPlayingSongIndex.value ); - notificationHandler.emit( 'playback-update', isPlaying.value ); - notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 ); - hasStarted = true; + setTimeout( () => { + getDetails(); + playingSong = player.getPlayingSong(); + pos.value = player.getPlaybackPos(); + prepNiceDurationTime( playingSong ); + notificationHandler.emit( 'playlist-index-update', currentlyPlayingSongIndex.value ); + notificationHandler.emit( 'playback-update', isPlaying.value ); + notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 ); + hasStarted = true; + }, 2000 ); } }