When I create a playbackSession and load a track/playlist with loadStreamUrl
, this playlist repeats playing from the start after the last song was reached. I instead want it to stop at the end.
I tried to find a property similar to playOnComplete
(payload of loadStreamUrl
) which starts playback automatically after buffering the track, just for ending playback after the track was played.
I also tried to use playback->setPlayModes
to forbid repeating, but this is just ignored.
{
"playModes": {
"repeat": false
}
}
I know this is possible by setting up an Event Callback and process the playbackStatus events, but I am looking for a simple "fire-and-forget" solution.