New and Improved DFPlayer Mini Library!!

?

the void loop() is exactly that a loop.. that keep running.

So you are basically playing the song/track... waiting 5 second (delay(5000))..

then starting over again (rinse/repeat)

You will would need to set a variable/flag saying that track has been played once.. and and if so, do not do so again.