Pls clarify step 39 js beta - build a music player

I’m trying to understand the reasoning for step 39’s instructions. I’ve quoted the instructions below:

Step 39

Add an else block to handle the current song’s position in the playlist.

Within the else block, set the currentTime property of the audio object to the value stored in userData?.songCurrentTime.

My question is: what has setting the currentTime got to do with “the current song’s position in the playlist”? I don’t recall seeing any indication that playtime is associated with where the songs are shown? (or maybe i’ve misunderstood)

Setting the CurrentTime of the CurrentSong in the playlist has to do with the indication of the CurrentSong status. You want the user to know the duration of the current song in the playlist

thanks for your answer, but I’m not sure that it answers my question.
The instructions were " Add an else block to handle the current song’s position in the playlist." and I don’t understand how the position of the song in the playlist is affected by the current time.

1 Like

The Current time in this exercise I believe, it’s referring to the current song being play status. If a playlist is set to automatic, the position of the next songs on the playlist are affected by the current time of the current song.

I’m not sure I understand what you mean by “the position of the next songs … are affected”. How are they affected? Also note that the instruction said: “the current song’s position in the playlist”, not the “next song’s position”.

The Current Song position in the playlist, referring to the song being play.

thanks again, but I’m afraid you’re not answering my question still. I understand what ‘current song’ means. I’m not understanding what the instructions that I quoted a few times now mean.

1 Like

issue has been opened for fixing the instructions

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.