2012-10-20, 21:33
(2012-10-19, 18:30)Ayla Wrote: What is the correct way to navigate the PVR OSD with JSON-RPC commands?Will have to give this a try.
For example, I send this command to bring up the OSD Channels window (which works correctly):
{"jsonrpc":"2.0","id": 1,"method":"GUI.ActivateWindow", "params": {"window":"pvrosdchannels"}, "id": "1"}}
Then, I try to navigate the list with:
{"jsonrpc":"2.0","method":"Input.Up","id":1}
Or with:
{"jsonrpc":"2.0","id": 1,"method":"Input.ExecuteAction", "params": {"action": "up"}, "id": "1"}
Neither works…
I'm using the latest Frodo nightly from today.
(2012-10-19, 22:52)Jasp Wrote: After seeing that GUI.ActivateWindow was added I've updated to the latest as well.
I can't seem to navigate to Movies from TV Shows and vice versa. whenever I send the following command I get sent to the one I was previously at:
Code:{"jsonrpc":"2.0","id": 1,"method":"GUI.ActivateWindow", "params": {"window":"video"}, "id": "1"}}
Is there a way to go directly to Movies or TV Shows?
You can pass a specific node in the "parameters" parameter which will be passed on to the activated window and open that node. If you e.g. want to go directly to the list of movie titles you need to do
Code:
{ "jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "video", "parameters": [ "MovieTitles" ] }, "id": 1 }