mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 04:54:23 +00:00
actually fix it now
This commit is contained in:
@@ -434,14 +434,16 @@
|
|||||||
|
|
||||||
if ( pos.value > 0 && !hasStarted ) {
|
if ( pos.value > 0 && !hasStarted ) {
|
||||||
if ( player.getPlaying() ) {
|
if ( player.getPlaying() ) {
|
||||||
getDetails();
|
setTimeout( () => {
|
||||||
playingSong = player.getPlayingSong();
|
getDetails();
|
||||||
pos.value = player.getPlaybackPos();
|
playingSong = player.getPlayingSong();
|
||||||
prepNiceDurationTime( playingSong );
|
pos.value = player.getPlaybackPos();
|
||||||
notificationHandler.emit( 'playlist-index-update', currentlyPlayingSongIndex.value );
|
prepNiceDurationTime( playingSong );
|
||||||
notificationHandler.emit( 'playback-update', isPlaying.value );
|
notificationHandler.emit( 'playlist-index-update', currentlyPlayingSongIndex.value );
|
||||||
notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 );
|
notificationHandler.emit( 'playback-update', isPlaying.value );
|
||||||
hasStarted = true;
|
notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 );
|
||||||
|
hasStarted = true;
|
||||||
|
}, 2000 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user