2011-04-06, 21:07
marksoccer Wrote:Sorry, I should have mentioned, I tried using AudioPlaylist.Play after using AudioPlaylist.Add (also tried after AudioPlaylist.Insert).
I should note however, that AudioPlaylist.Play appears to be working fine as I can play something through the XBMC GUI and have it restart to the top of the playlist using AudioPlaylist.Play. However, regardless of whether I use Add or Insert, I cannot get items (songids, albumids, artistids) to be added to the now playing queue.
Here are some examples of the commands I am sending, and their respective results:
Using Insert:
{"jsonrpc":"2.0","method":"AudioPlaylist.Insert","id":1,"params":{"item":{"artistid":89},"index":0}}
{"jsonrpc":"2.0","method":"AudioPlaylist.Play","id":2,"params":{"item":0}}
Result[1] = {"id":1,"jsonrpc":"2.0","result":"OK"}
Result[2] = {"id":2,"jsonrpc":"2.0","result":{"success":true}}
Using Add:
{"jsonrpc":"2.0","method":"AudioPlaylist.Add","id":1,"params":{"item":{"artistid":89}}}
{"jsonrpc":"2.0","method":"AudioPlaylist.Play","id":2,"params":{"item":0}}
Result[1] = {"id":1,"jsonrpc":"2.0","result":"OK"}
Result[2] = {"id":2,"jsonrpc":"2.0","result":{"success":true}}
No problem I thought as much but just wanted to be sure. I'll have to double-check that because I didn't touch the logic behind it I only re-structured the parameters.