How to achieve loop function for single songs

Hey Everyone, I am using an arylic up2stream mini to play songs, i have created my own app for this. One issue i am facing is to achive a loop functionalities for single songs, like for example. I used DLNA UPnp and sometimes http Apis to give command to the devices.
To play a song, i set a song and execute the play command, my question is , is there a loop command to infinitely loop a single song?

Thanks