REST API web radio playback command

Hello All

I’m trying to send command to start playback of selected web radio.

For example on my Browse request I’m getting this reply:

{“navigation”:{“lists”:[{“availableListViews”:[“list”],“items”:[{“service”:“webradio”,“type”:“webradio”,“title”:“ANTENA1 | 94,7 FM”,“artist”:"",“album”:"",“uri”:“http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1796249",“albumart”:"http://i.radionomy.com/document/radios/9/9e64/9e6458c0-3a81-427f-b8cf-e3ab5721fbf9.png”},…

Then I’m trying to use POST replaceAndPlay + URI which I want to play.

It does work with mp3 files but doesn’t do anything with Webradios or Playlists.

Moreover I’m getting response Success on my command.

Do I need to use some other POST command for playing Webradios and Playlists?
Thanks.

1 Like

@Diflex
In my code the following syntax works:
socketIO.emit('replaceAndPlay', {"service": "webradio", "type": "webradio", "title": 'yourTitle', "uri": 'yourUri'})
I think at least “uri” and “service” is important.
Regards
AxLED