How can I make YX5300 MP3 player play song in a loop?
I think you want to use the command [Single cycle play] which is 7E FF 06 08 00 00 01 EF (the 00 01 towards the end is the song number to play).

All the commands are detailed in the manual.