2013-07-28, 19:14
Hi,
This is my request to retrieve all song in the AudioLibrary
and here is result:
But When I click on "Love To be Loved by You", XBMC plays another song (Payphone).
Every time user click on item in the list, I get the POSITION of that line, and assign to a function to execute this request:
I can't play exactly the song in the list. Any idea to fix this?
This is my request to retrieve all song in the AudioLibrary
Code:
{"jsonrpc":"2.0", "method": "AudioLibrary.GetSongs","params": {"limits": { "start" : 0 }, "properties": [ "artist", "duration", "album", "track" ], sort": { "order": "ascending", "method": "track", "ignorearticle": true } }, "id": "getsongs"}
But When I click on "Love To be Loved by You", XBMC plays another song (Payphone).
Every time user click on item in the list, I get the POSITION of that line, and assign to a function to execute this request:
Code:
{"jsonrpc": "2.0", "id" : "playsong", "method": "Player.Open","params":{"item": {"position":"+ POSITION +","playlistid":0}}}
I can't play exactly the song in the list. Any idea to fix this?