Play one song then stop

I would like to have a GPIO pin play one song on the playlist and then stop and go to the next.

Is there a way to add a parameter to

Such that it would stop after the song is finished?

I am not comprehending how the tracklist controller can be used here.

But if I could get the tracklist to load a random song and set it to single mode prior to the gpio pinpressing play, that would accomplish what I’m trying to do.

Is there anywhere where I could see some examples?