12 lines
560 B
Plaintext
12 lines
560 B
Plaintext
Send CEC commands through XBMC’s JSON-RPC.
|
||
XBMC Gotham is required because that is when these built in function were made available to add-ons.
|
||
|
||
Accepted commands are:
|
||
|
||
‘activate’ - Wake up playing device via a CEC peripheral
|
||
‘standby’ - Put playing device on standby via a CEC peripheral
|
||
‘toggle’ - Toggle state of playing device via a CEC peripheral
|
||
|
||
example JSON request:
|
||
|
||
http://localhost:8080/jsonrpc?request={“jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec”,”params":{"command":"activate"}},"id":1} |