Jsonrpc help
#1
Ive been screwing around for ages trying to open a video file with jsonrpc, despite the number combinations Ive tried it wont work. Everything looks like it should work, but I cant nut it out. The file I want to launch is /media/br0/BDMV/index.bmdv. I have the webserver enabled and listening on port 7777 with no user name/pass and running Frodo-RC. Here is the latest iteration, and output, of the command Im trying:

Code:
~$ curl --data-binary '{ "jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"file": "/media/br0/BDMV/index.bmdv"}}, "id": "1" }' -H 'content-type: application/json;' http://localhost:7777/jsonrpc
{"error":{"code":-32602,"message":"Invalid params."},"id":"1","jsonrpc":"2.0"}

Ive tried the wiki but I cant make alot sense of it, although Ive managed to glean some info from it.

Can anyone see what Im doing wrong? Or be kind enough to show me how its done?

Thanks in advance.
Reply
#2
I have to admit, I needed a bit to figure that out too Wink

Code:
curl -H "Content-Type:application/json" -d '{ "jsonrpc": "2.0", "id": "1", "method": "Player.Open", "params":{"item": {"file": "/home/wuff/Videos/killa.sampla.x264.mkv"}}}' http://localhost:8080/jsonrpc
Reply
#3
Thank you! I'll try it tonight after work.
Reply
#4
Ok, so this is why its you shouldnt drink beer and tweak xbmc at the same time:

Your version didnt work at first, and I was ready to scream, then I had a look at the only difference, the file name which I had copy - pasted, and instantly realised index.BMDV should be index.BDMV ......... So both version work now and I feel stupid...Confused But in my defense the error messages I was getting were giving me the impression that it was a formatting problem... anyways, how do you delete a thread on these forums? Tongue

Thanks for your time wsnipex
Reply

Logout Mark Read Team Forum Stats Members Help
Jsonrpc help0