2014-01-15, 00:17
The following are some of the working JSON-RPC commands;
{"jsonrpc": "2.0", "method": "Player.PlayPause", "params": { "playerid": 0 }, "id": 1} -- play pause
{"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":true},"id":1} -- play
{"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":false},"id":1} -- pause
{"jsonrpc": "2.0", "method": "Player.Stop", "params": { "playerid": 0 }, "id": 1} -- stop
{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": 0, "to": "next" }, "id": 1} -- next
{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": 0, "to": "previous" }, "id": 1} -- previous
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":2 },"id":1} -- ffwd with speed 2
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":4 },"id":1} -- ffwd with speed 4
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":-2 },"id":1} -- rwd with speed 2
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":-4 },"id":1} -- rwd with speed 4
{"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": 0, "value": "smallforward" }, "id": 1} -- jump forward
{"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": 0, "value": "smallbackward" }, "id": 1} -- jump backward
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "one" }, "id": 1} -- repeat one
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "all" }, "id": 1} -- repeat all
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "off" }, "id": 1} -- repeat off
{"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":0,"shuffle":true},"id":1} -- shuffle on
{"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":0,"shuffle":false},"id":1} -- shuffle false
{"jsonrpc": "2.0", "method": "Input.Home", "id": 1} -- home
{"jsonrpc": "2.0", "method": "Input.Left", "id": 1} -- left
{"jsonrpc": "2.0", "method": "Input.Right", "id": 1} -- Right
{"jsonrpc": "2.0", "method": "Input.Up", "id": 1} -- up
{"jsonrpc": "2.0", "method": "Input.Down", "id": 1} -- Down
{"jsonrpc": "2.0", "method": "Input.Back", "id": 1} -- Back
{"jsonrpc": "2.0", "method": "Input.Select", "id": 1} -- Select
{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "increment" }, "id": 1 } -- volume up
{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "decrement" }, "id": 1 } -- volume down
{"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": ["title", "album", "artist", "duration"], "playlistid": 0 }, "id": 1} -- get Playlists
{"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"properties":["playcount","artist","genre"],"limits":{"end":10,"start":0},"sort":{"order":"ascending","method":"album","ignorearticle":true}},"id":"libAlbums"} -- get Albums
{"jsonrpc": "2.0", "method": "Player.PlayPause", "params": { "playerid": 0 }, "id": 1} -- play pause
{"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":true},"id":1} -- play
{"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":false},"id":1} -- pause
{"jsonrpc": "2.0", "method": "Player.Stop", "params": { "playerid": 0 }, "id": 1} -- stop
{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": 0, "to": "next" }, "id": 1} -- next
{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": 0, "to": "previous" }, "id": 1} -- previous
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":2 },"id":1} -- ffwd with speed 2
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":4 },"id":1} -- ffwd with speed 4
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":-2 },"id":1} -- rwd with speed 2
{"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":0,"speed":-4 },"id":1} -- rwd with speed 4
{"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": 0, "value": "smallforward" }, "id": 1} -- jump forward
{"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": 0, "value": "smallbackward" }, "id": 1} -- jump backward
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "one" }, "id": 1} -- repeat one
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "all" }, "id": 1} -- repeat all
{"jsonrpc": "2.0", "method": "Player.SetRepeat", "params": { "playerid": 0, "repeat": "off" }, "id": 1} -- repeat off
{"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":0,"shuffle":true},"id":1} -- shuffle on
{"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":0,"shuffle":false},"id":1} -- shuffle false
{"jsonrpc": "2.0", "method": "Input.Home", "id": 1} -- home
{"jsonrpc": "2.0", "method": "Input.Left", "id": 1} -- left
{"jsonrpc": "2.0", "method": "Input.Right", "id": 1} -- Right
{"jsonrpc": "2.0", "method": "Input.Up", "id": 1} -- up
{"jsonrpc": "2.0", "method": "Input.Down", "id": 1} -- Down
{"jsonrpc": "2.0", "method": "Input.Back", "id": 1} -- Back
{"jsonrpc": "2.0", "method": "Input.Select", "id": 1} -- Select
{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "increment" }, "id": 1 } -- volume up
{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "decrement" }, "id": 1 } -- volume down
{"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": ["title", "album", "artist", "duration"], "playlistid": 0 }, "id": 1} -- get Playlists
{"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"properties":["playcount","artist","genre"],"limits":{"end":10,"start":0},"sort":{"order":"ascending","method":"album","ignorearticle":true}},"id":"libAlbums"} -- get Albums