2016-04-20, 20:53
Hi guy
I send the this RPC call
and get this response
But why?
http://kodi.wiki/view/JSON-RPC_API/v6#Pl...udioStream
Isnt it the correct RPC call?
Im connected via Websockets.
Code: https://github.com/breadlesscode/KodiApi.js
I send the this RPC call
Code:
{
"jsonrpc": "2.0",
"method": "Player.SetAudioStream",
"params": {
"playerid": 0,
"stream":"next"
},
"id":"xy"
}
and get this response
Code:
{
"error": {
"code": -32100,
"message": "Failed to execute method."
},
"id":"xy",
"jsonrpc":"2.0"
}
But why?
http://kodi.wiki/view/JSON-RPC_API/v6#Pl...udioStream
Code:
{
"params": [
{
"$ref": "Player.Id",
"name": "playerid",
"required": true
},
{
"name": "stream",
"required": true,
"type": [
{
"enums": [
"previous",
"next"
],
"type": "string"
},
{
"minimum": 0,
"description": "Index of the audio stream to play",
"type": "integer"
}
]
}
],
"description": "Set the audio stream played by the player",
"returns": {
"type": "string"
}
}
Isnt it the correct RPC call?
Im connected via Websockets.
Code: https://github.com/breadlesscode/KodiApi.js