Rpc - Getting streamlist and selecting stream

Hallo,

I am using pi musicbox to play webradio. My favorite stations are configured to be listed under “Streams”.
No I plan to have get a list of the stations, the current playing station and I want to jump to the next/previous one.

I fiddled a while with RPC, but am only able to get the current playing station.

  • Is it possible to get a full list of the configured streams, or is this part of the stream extension not exposed to the API?
  • same for skipping to next/prev

The doc at https://docs.mopidy.com/en/latest/api/core/ was my base of research with postman to send the request. (The far goal is to have an ESP32 with a small display and two buttons to do the job)
If the above is not possible over RPC, are there any other ways. (Without storing the tracklist somewhere else and explicitly calling a stream-URL)

Thanks in advance

The streams playlist is just an m3u playlist and can be manipulated like other m3u playlists. The playlist is just a handled as a special case in musicbox-webclient. You need to use the Mopidy v0.19 API reference (https://docs.mopidy.com/en/release-0.19/api/core/). The streams page itself has a button which grabs the currently playing track so you can just look at how that is done if you get stuck. Alternatively you can issue MPD commands, it’s easy to use the command line client mpc to do that.