Posts: 27
Joined: Nov 2010
Reputation:
0
Can anyone tell me why this isn't setting the app to be fullscreen?
curl -u $username:$password --data-binary '{ "jsonrpc": "2.0", "method": "GUI.SetFullscreen", "params": {"fullscreen": true }, "id": "folkrule"}' -H 'content-type: application/json;' http://$hostport/jsonrpc
The below works fine:
curl -u $username:$password --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "folkrule"}' -H 'content-type: application/json;' http://$hostport/jsonrpc
Thanks,
Losty
Posts: 27
Joined: Nov 2010
Reputation:
0
04:04:41 T:140395065358080 DEBUG: Thread JobWorker 140395065358080 terminating (autodelete)
04:04:41 T:140395728021248 DEBUG: Thread JobWorker 140395728021248 terminating (autodelete)
04:04:41 T:140395090536192 DEBUG: Thread JobWorker 140395090536192 terminating (autodelete)
04:04:41 T:140395181926144 DEBUG: Thread JobWorker 140395181926144 terminating (autodelete)
04:04:41 T:140396478334912 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
04:04:41 T:140396478334912 DEBUG: Unloading: ImageLib-x86_64-linux.so
04:04:43 T:140395181926144 DEBUG: webserver: request received for /jsonrpc
04:04:44 T:140396143277824 DEBUG: CecLogMessage - unregistering all CEC clients
Is all that shows up in the debug log, the response i get returns false:
{"id":"folkrule","jsonrpc":"2.0","result":false}
The output I get if i mess around seems to lead me to believe i could POST a string instead of a boolean true, but when I wrap true in quotes i get:
{"error":{"code":-32602,"data":{"method":"GUI.SetFullscreen","stack":{"message":"Received value does not match any of the union type definitions","name":"fullscreen","type":["string","boolean"]}},"message":"Invalid params."},"id":"folkrule","jsonrpc":"2.0"}
Posts: 27
Joined: Nov 2010
Reputation:
0
Thanks a lot Montellese, true, false and toggle, all work as expected. I actually wanted to use the "other" full screen (backslash key) - that's why I didn't see it working for me. It would be good if json rpc supported the fulcrum window option, and I could query it's state exactly as I can do with full window video.
However I've got most of what I need through the event sever.
Thanks again,
Losty
Posts: 146
Joined: Mar 2015
Reputation:
6
axa88
Senior Member
Posts: 146
why might this not t this work for me...
i get a response to a valid toggle command, but the result is always the same, with the widow doing nothing...
sent:
{"jsonrpc":"2.0","method":"GUI.SetFullscreen","params":{"fullscreen":"toggle"},"id":"88"}
response:
{"id":"88","jsonrpc":"2.0","result":false}