2011-09-25, 10:22
mzanetti Wrote:Calling this crashes xbmc:Thanks for the report. I thought I had tried all those cases but seems like I didn't do it right. Could you please create a bug report on Trac so I don't forget?
Code:"{ "id" : 22, "jsonrpc" : "2.0", "method" : "Playlist.Clear", "params" : { "playlistid" : 2 } }"
"{ "id" : 23, "jsonrpc" : "2.0", "method" : "Playlist.Add", "params" : { "item" : { "file" : "/home/user/Pictures/picture.jpg" }, "playlistid" : 2 } }"
"{ "id" : 24, "jsonrpc" : "2.0", "method" : "Player.Open", "params" : { "item" : { "playlistid" : 2, "position" : 0 } } }"
"{ "id" : 25, "jsonrpc" : "2.0", "method" : "Playlist.Clear", "params" : { "playlistid" : 2 } }"
This can be worked around by calling Player.Stop before the Playlist.Clear but still shouldn't happen I guess.
jasonvp Wrote:Hi guys,
What am I doing wrong?
Code:{"jsonrpc":"2.0","id":1,"method":"Player.SetSpeed","params":{"playerid":0,"speed":2}}
Code:{"error":{"code":-32602,"data":{"method":"Player.SetSpeed","stack":{"message":"Received value does not match any of the union type definitions","name":"speed","type":["string","integer"]}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
Broken here as well. Probably a bug in my union type implementation. Please create a bug ticket as well. Thanks.