Closed mantou132 closed 3 years ago
// when next track audio.addEventListener('emptied', () => { sharedData.resetData(); });
But the music information has not changed and updateTrack has not been triggered
updateTrack
The emptied event is triggered when the next track is clicked, at this moment:
emptied
audio.currentTime === 0; isNaN(audio.duration)
Just judge audio.duration when rendering lyrics.
audio.duration
But the music information has not changed and
updateTrack
has not been triggered