sub main()
audioplayer=createobject("roaudioplayer")
playlist=[{url:"http://myserver.com/song1.mp3",streamformat:"mp3"}
{url:"http://myserver.com/song2.mp3",streamformat:"mp3"}
{url:"http://myserver.com/song3.m4a",streamformat:"mp4"}]
audioplayer.setcontentlist(playlist)
audioplayer.setnext(0)
audioplayer.play()
while true
'loop forever for this example, in the real world you would be checking the message port and tracking current song etc.
end while
end sub
How do I change the data feed from playlist=url:http://myserver
to my webhost url (example: http://www.myhost.com/a.json)?