[bugfix]: restart synchronized lyrics on repeat one (or track queued multiple times)
This commit is contained in:
parent
9f86a8179f
commit
729538d885
1 changed files with 6 additions and 1 deletions
|
@ -271,7 +271,12 @@ export const SynchronizedLyrics = ({
|
|||
|
||||
return;
|
||||
}
|
||||
if (!seeked) {
|
||||
|
||||
// If the time goes back to 0 and we are still playing, this suggests that
|
||||
// we may be playing the same track (repeat one). In this case, we also
|
||||
// need to restart playback
|
||||
const restarted = status === PlayerStatus.PLAYING && now === 0;
|
||||
if (!seeked && !restarted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue