Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

Querying current state of a List

$
0
0
I want to extend the Android remote app to control XBMC from the front seat of the car and have the kids watch me scroll through the movies and call out "no, no, no, wait - go back a couple..."

I can send a JSON-RPC request to bring up the list of movies on their screens: {"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos"}}

I can also send a request to get a list of movies and display the names and images on my mobile:
{"jsonrpc":"2.0","method":"VideoLibrary.GetMovies","params":{"properties":["art","thumbnail","file"],"sort":{"order":"ascending", "method":"label", "ignorearticle":true}}, "id": "libMovies"}

Then I can scroll up/down or left/right and press select, but how can I sync the selected item on my mobile with the selected item they're seeing on their screens?

...There's Control.SetFocus(id,position) - but I've got no idea what "id" to use, and the documentation isn't clear as to whether "position" is 0-(n-1), 1-n or "top"/"left"/"first".

Are there usage examples for each of the JSON-RPC methods?

Viewing all articles
Browse latest Browse all 84005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>