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